推荐教程: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插件怎么换行的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号