在某些实际应用中,希望把文本超出的部分隐藏而非换行,下面就是一段这样的代码实例,大家可以参考一下。
代码如下:
蚂蚁部落 #content{ width:130px; height:80px; background-color:green; white-space:nowrap; text-overflow:ellipsis; overflow:hidden;}蚂蚁部落欢迎您,只有奋斗才会有美好的明天
查看更多关于css实现文本超出li宽度的部分隐藏_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did110344