本文介绍: 重置td的高度:height:100% 改为height:auto!因为td单元格内空长度不定导致行单元格未对齐

问题

因为td单元格内空长度不定导致行单元格未对齐

解决

重置td的高度:height:100% 改为height:auto !import 

  <u-table>
          <u-tr v-for="(item,index) in Lineinfo.Cust_Name" >
            <u-td style="height: auto !important;background-color: #bfc;">33</u-td>
            <u-td style="height: auto !important;background-color: #bfc;">{{ Lineinfo.plantime[index].split('T')[1] }}</u-td>
            <u-td style="height: auto !important;background-color: #bfc;">
              <u-button size="mini" :custom-style="btnCustStyle" :hair-line='false'>删除</u-button>
            </u-td>
          </u-tr>
        </u-table>
效果

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注