时间:2021-07-01 10:21:17 帮助过:105人阅读

推荐教程:Bootstrap教程
如果多加几列,td文字多了就不会换行,全是按照一行显示 且把整个table宽度自动超出body的宽度,出现了滚动条
解决办法
<table class="table table-striped table-hover table-bordered" style="word-break:break-all; word-wrap:break-all;">
加了个style="word-break:break-all; word-wrap:break-all;" 这个就没问题了
<table class="table table-striped" style="word-break:break-all; word-wrap:break-all;">
<tr>
<td>title</td>
<td>123456789111111111111111111111111111111</td>
</tr>
</table>以上就是bootstrap table插件怎么换行的详细内容,更多请关注Gxl网其它相关文章!