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>
效果:
相关推荐
xxy-mm19 小时前
Javascript 中的继承
开发语言·javascript·ecmascript
1024肥宅21 小时前
手写 EventEmitter:深入理解发布订阅模式
前端·javascript·eventbus
3秒一个大1 天前
HTML5 与 JavaScript 中的二进制数据处理:ArrayBuffer 与 TextEncoder/Decoder 实践
javascript
purpleseashell_Lili1 天前
如何学习 AG-UI 和 CopilotKit
javascript·typescript·react
LSL666_1 天前
4 jQuery、JavaScript 作用域、闭包与 DOM 事件绑定
前端·javascript·html
小飞侠在吗1 天前
vue computed 和 watch
前端·javascript·vue.js
诸葛老刘1 天前
next.js 框架中的约定的特殊参数名称
开发语言·javascript·ecmascript
coding随想1 天前
掌控选区的终极武器:getSelection API的深度解析与实战应用
java·前端·javascript
沐风。561 天前
Object方法
开发语言·前端·javascript
JS_GGbond1 天前
JavaScript入门学习路线图
开发语言·javascript·学习