css 超出一行显示省略号,table-cell溢出

两个实例,能够直接复制运行。css 代码以下 <div class="circle"> 11111123456789 </div> <style> .circle { width: 100px; overflow: hidden; /*超出隐藏*/ white-space: nowrap; /*强制在同一行显示*/ text-overflow: ellipsis; /*省略号*/ } </
相关文章
相关标签/搜索