bootstrap内容太多表格撑破

增加样式  style="word-break:break-all; word-wrap:break-all;" 

 这样内容就会自动换行,表格就美观多了。

<table class="table table-bordered table-hover table-striped" style="word-break:break-all; word-wrap:break-all;">
       <thead>
                      <tr>
                        <th>变量名 <i class="fa fa-sort"></i></th>
                        <th></th>
                      </tr>
        </thead>
        <tbody>
                      <#list systemPro.keySet() as key>
                        <tr>
                          <td style="width:150px;">${key}</td>
                          <td>${systemPro.get(key)}</td>
                        </tr>
                      </#list>
        </tbody>
 </table>

 

posted @ 2017-02-13 21:33  jiftle  阅读(3890)  评论(0编辑  收藏  举报