css 超出一行顯示省略號,table-cell溢出

兩個實例,能夠直接複製運行。css 代碼以下 <div class="circle"> 11111123456789 </div> <style> .circle { width: 100px; overflow: hidden; /*超出隱藏*/ white-space: nowrap; /*強制在同一行顯示*/ text-overflow: ellipsis; /*省略號*/ } </
相關文章
相關標籤/搜索