uView ui 1x uniapp 表格table行内容长度不一导致高度不统一而出现的不对齐问题

问题

因为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>
效果:
相关推荐
汪汪队立大功1231 天前
selenium中执行javascript,是否等价于在浏览器console位置执行
javascript·selenium·测试工具
anyup1 天前
支持鸿蒙!开源三个月,uView Pro 开源库近期更新全面大盘点,及未来计划
前端·vue.js·uni-app
soda_yo1 天前
搞不懂作用域链?这篇文章让你一眼秒懂!
javascript·面试
apollo_qwe1 天前
Set 和 Map常用场景代码片段
javascript
Hilaku1 天前
我为什么说全栈正在杀死前端?
前端·javascript·后端
程序猿_极客1 天前
【期末网页设计作业】HTML+CSS+JS 旅行社网站、旅游主题设计与实现(附源码)
javascript·css·html·课程设计·期末网页设计
用户283209679371 天前
为什么我的页面布局总是乱糟糟?可能是浮动和BFC在作怪!
javascript
会篮球的程序猿1 天前
原生表格文本过长展示问题,参考layui长文本,点击出现文本域
前端·javascript·layui
哆啦A梦15881 天前
48 我的地址页面布局
javascript·vue.js·node.js
阿斌_bingyu7091 天前
uniapp实现android/IOS消息推送
android·ios·uni-app