1 white-space: nowrap; /*文本不换行,单行显示*/ 2 overflow: hidden; /*溢出内容隐藏*/ 3 text-overflow: ellipsis; /*省略号显示,默认为clip*/ 浏览器运行效果:...
<style type="text/css">.textOverFlow {300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #ddd;}</style><div class="textOverFlow">各类...