html断行处理
来源:百度文库 编辑:神马文学网 时间:2024/04/28 02:58:13
word-break:break-all;
word-wrap: break-word;
html 不换行
white-space:nowrap;
html 截取字符
overflow:hidden;//这个属性不会出现省略号
white-space:nowrap;//让它不自动换行
text-overflow:ellipsis;//出现省略号了,重点
如果用这个截取的话,这个属性的东西必须加上高宽