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>
效果:

最近更新

  1. TCP协议是安全的吗?

    2023-12-06 23:32:02       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2023-12-06 23:32:02       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2023-12-06 23:32:02       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2023-12-06 23:32:02       20 阅读

热门阅读

  1. 什么是DDI?DDI的原理和作用是什么?一文看懂

    2023-12-06 23:32:02       35 阅读
  2. USTC Fall2023 高级人工智能期末考试回忆版

    2023-12-06 23:32:02       39 阅读
  3. 力扣labuladong一刷day29天二叉树

    2023-12-06 23:32:02       40 阅读
  4. 还记得当初自己为什么选择计算机?

    2023-12-06 23:32:02       32 阅读
  5. Spring第四课,MVC终章,应用分层的好处,总结

    2023-12-06 23:32:02       32 阅读
  6. 【分布式学习】之架构、系统、集群部署

    2023-12-06 23:32:02       39 阅读
  7. Prompt Toolkit探索:打造交互式CLI应用

    2023-12-06 23:32:02       37 阅读
  8. uniapp链接WebSocket 常用的API

    2023-12-06 23:32:02       44 阅读
  9. 解读VideoComposer:多模态融合视频生成

    2023-12-06 23:32:02       42 阅读