Home  >  Article  >  Web Front-end  >  How to wrap the bootstrap table plugin

How to wrap the bootstrap table plugin

angryTom
angryTomOriginal
2019-07-20 13:12:074525browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn