当前位置: 首页 > news >正文

微信小程序手写table表格

wxml

<view class="table"><view class="tr bg-w"><view class="th">张三</view><view class="th" style="color: #409eff;">李四</view><view class="th ">王五</view><view class="th ">赵六</view></view><block><view class="tr bg-g"><view class="td">男</view><view class="td" style="color:#409eff">男</view><view class="td">女</view><view class="td">男</view></view></block>
</view>

wxss:想加其他样式得可以自己+

.tr {display: flex;width: 100%;justify-content: center;height: 3rem;align-items: center;
}.td {width: 40%;justify-content: center;text-align: center;
}.th {width: 40%;justify-content: center;/* color: #fff; */display: flex;height: 3rem;align-items: center;
font-size: 15px;
}

总结:有循环的可以自己填写数据

http://www.lryc.cn/news/231015.html

相关文章:

  • UE5 - UI Material Lab 学习笔记
  • oracle删除重复的数据
  • Python中的并发编程是什么,如何使用Python进行并发编程?
  • 【LeetCode】136. 只出现一次的数字
  • HTTP服务器——tomcat的安装和使用
  • 代码随想录Day45 动态规划13 LeetCode T1143最长公共子序列 T1135 不相交的线 T53最大子数组和
  • 写了个监控 ElasticSearch 进程异常的脚本!
  • 第三篇 基于JSP 技术的网上购书系统—— 数据库系统设计(网上商城、仿淘宝、当当、亚马逊)
  • 电脑检测温度软件有哪些?
  • 设计模式 -- 单例模式(Singleton Pattern)
  • ubuntu给终端加代理服务器
  • centos 6.10 安装 readline 6.2.0
  • IDEA 2023搭建 SpringMVC +FreeMarker+JDBC
  • RabbitMQ传统数据持久化和Lazy queue的区别
  • docker部署lnmp环境
  • 数据结构 | 带头双向循环链表专题
  • Redis使用Pipeline(管道)批量处理
  • Linux中at命令添加一次性任务
  • 交换机基础知识之安全配置
  • Netty入门指南之Reactor模型
  • Ubuntu20.04软件安装顺序
  • 适配器模式 ( Adapter Pattern )(6)
  • JAVA G1垃圾收集器介绍
  • 十方影视后期“领进门”,成长与成就还得靠自身
  • Golang之火爆原因
  • WPF中Dispatcher对象的用途是什么
  • 图论17-有向图的强联通分量-Kosaraju算法
  • ubuntu中使用 vscode 连接docker开发环境
  • 【广州华锐视点】海外制片人VR虚拟情景教学带来全新的学习体验
  • 龙芯loongarch64麒麟服务器配置yum源