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

解决:
重置td的高度:height:100% 改为height:auto !import
<u-td style="height: auto !important;background-color: #bfc;">33</u-td>
<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>
效果:

博客主要围绕td单元格未对齐问题展开。因td单元格内内容长度不定,导致行单元格未对齐。解决办法是将td的高度从height:100%重置为height:auto!important,给出了相应代码示例,解决了该问题。

6214

被折叠的 条评论
为什么被折叠?



