CSS实现不让其换行
如果你没用前段框架封装好的样式的话:
p{width: 100px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}强制换行(解决英文不换行问题)
p {
width: 15%;
table-layout: fixed;
WORD-BREAK: break-all;
WORD-WRAP: break-word;
}
赞赏支持
本文由 litblc 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为: Oct 12, 2017 at 05:03 pm


is Hypter Text Mark Language. Width:100px is CSS code.
php的一个函数好像也可以解决
show me , thx