bootstrap table th内容太多表格撑破(自动换行)

增加样式  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>
复制代码

 

你可能感兴趣的:(js)