`
T240178168
  • 浏览: 361795 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

table中div内容为纯数字和字母换行

    博客分类:
  • JS
阅读更多
不换行 简单些td中加white-space: nowrap;就行了

换行如下:

<table>
<tr>
<td width=50>asdasd</td>
<td width="100%" style="word-wrap : break-word;word-break: break-all; overflow:hidden; ">1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111</td>
</tr>
</table>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics