css解决字段不换行

1.自动换行

<div style="widht:100%;height:100%;word-wrap: break-word">啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊</div>

2.限制宽高度

<div style="widht:100px;height:100px;overflow:hidden">啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊</div>

原文地址:https://www.cnblogs.com/XiaoYEBLog/p/11937003.html