好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

text-overflow截取字符串简单介绍_html/css_WEB-ITnose

text-overflow截取字符串简单介绍:
使用css可以实现截取字符串的功能,主要就是采用text-overflow属性,当然单独使用该属性也是不能够实现此功能的,还是要配合其他属性使用,代码实例如下:

      蚂蚁部落  div{  width:150px;  height:20px;  overflow:hidden;  white-space:nowrap;  text-overflow:ellipsis;}   

蚂蚁部落欢迎您,只有努力才会有没有好的明天

查看更多关于text-overflow截取字符串简单介绍_html/css_WEB-ITnose的详细内容...

  阅读:35次