Home >Web Front-end >Bootstrap Tutorial >How to wrap the bootstrap table plugin
Recommended tutorial: Bootstrap tutorial
If you add a few more columns, there will be too much td text There will be no line wrapping, everything will be displayed in one line and the width of the entire table will automatically exceed the width of the body, and a scroll bar will appear
Solution
<table class="table table-striped table-hover table-bordered" style="word-break:break-all; word-wrap:break-all;">
Added astyle="word-break:break-all; word-wrap:break-all;"
This is no problem
<table class="table table-striped" style="word-break:break-all; word-wrap:break-all;"> <tr> <td>title</td> <td>123456789111111111111111111111111111111</td> </tr> </table>
The above is the detailed content of How to wrap the bootstrap table plugin. For more information, please follow other related articles on the PHP Chinese website!