• 技术文章 >web前端 >Bootstrap教程

    bootstrap table插件怎么换行

    angryTomangryTom2019-07-20 13:12:07原创3141

    推荐教程: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中文网其它相关文章!

    声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。
    专题推荐:Bootstrap table
    上一篇:bootstrap用来做什么 下一篇:自己动手写 PHP MVC 框架(40节精讲/巨细/新人进阶必看)

    相关文章推荐

    • bootstrap中fonts怎么引用• bootstrap为什么是12列• bootstrap特点是什么意思• bootstrap用来做什么
    1/1

    PHP中文网