如何使用CSS包装文本?

前端之家收集整理的这篇文章主要介绍了如何使用CSS包装文本?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
参见英文答案 > CSS: How do I wrap text with no whitespace inside a <td>?8个答案
<td>gdfggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg</td>

如何获得这样的文本在CSS包装?

解决方法

尝试这样做。适用于IE8,FF3.6,Chrome
<BODY>
  <TABLE>
  <TR>
    <TD><div style="word-wrap: break-word; width: 100px" > gdfggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg</div></TD>
  </TR>
  </TABLE>
 </BODY>
原文链接:https://www.f2er.com/css/223087.html

猜你在找的CSS相关文章