当前位置:网站首页>table表格设置圆角
table表格设置圆角
2022-07-06 17:29:00 【yunchong_zhao】
我们发现直接给table设置 border-radius 的时候发现不生效
已经好久没有原生写过table 布局了 现在基本上都是使用 ui框架中的table
但是吧有的时候我们 移动端需要表格的时候 同时展示一些 复杂的表头 合并表格的时候 这个时候可能需要我们原生书写 table 标签
比如 rowspan 合并行。colspan 合并列
好像有点跑题了。设置圆角的话 我们不能在表格上设置
border-collapse: collapse; 如果你设置了这个。可能不生效的
合并(collapsed )模式下,表格中相邻单元格共享边框。在这种模式下,CSS 属性border-style 的值 inset 表现为槽,值 outset 表现为脊。
border-collapse: collapse;
border-collapse CSS 属性是用来决定表格的边框是分开的还是合并的。在分隔模式下,相邻的单元格都拥有独立的边框。在合并模式下,相邻单元格共享边框。
如果想设置成功的话还得调整 下面这样就可以
设置border-collapse: separate;
分隔(separated)模式是 HTML 表格的传统模式。相邻单元格都拥有不同的边框。边框之间的距离是通过 CSS 属性 border-spacing 来确定的。
border-collapse: separate;
border-spacing: 0;
border-radius: 4rpx;
然后就可以了。
写移动端表格 这次狠狠的给我复习了一波。表格知识。
关注我 持续更新前端知识
边栏推荐
- Explain in detail the matrix normalization function normalize() of OpenCV [norm or value range of the scoped matrix (normalization)], and attach norm_ Example code in the case of minmax
- ARM裸板调试之JTAG调试体验
- NEON优化:关于交叉存取与反向交叉存取
- Trace tool for MySQL further implementation plan
- Tensorflow GPU installation
- 系统休眠文件可以删除吗 系统休眠文件怎么删除
- Atomic in golang and CAS operations
- In rails, when the resource creation operation fails and render: new is called, why must the URL be changed to the index URL of the resource?
- Link sharing of STM32 development materials
- Return to blowing marshland -- travel notes of zhailidong, founder of duanzhitang
猜你喜欢

LLDP兼容CDP功能配置
![[100 cases of JVM tuning practice] 05 - Method area tuning practice (Part 2)](/img/40/dc45df3cd3ee7642277eff899bc6aa.png)
[100 cases of JVM tuning practice] 05 - Method area tuning practice (Part 2)

详解OpenCV的矩阵规范化函数normalize()【范围化矩阵的范数或值范围(归一化处理)】,并附NORM_MINMAX情况下的示例代码

Return to blowing marshland -- travel notes of zhailidong, founder of duanzhitang

第五篇,STM32系统定时器和通用定时器编程
深入探索编译插桩技术(四、ASM 探秘)

Activereportsjs 3.1 Chinese version | | | activereportsjs 3.1 English version

【JVM调优实战100例】05——方法区调优实战(下)
![[hfctf2020]babyupload session parsing engine](/img/db/6003129bc16f943ad9868561a2d5dc.png)
[hfctf2020]babyupload session parsing engine

Periodic flash screen failure of Dell notebook
随机推荐
NEON优化:矩阵转置的指令优化案例
Explain in detail the matrix normalization function normalize() of OpenCV [norm or value range of the scoped matrix (normalization)], and attach norm_ Example code in the case of minmax
NEON优化:关于交叉存取与反向交叉存取
Fastdfs data migration operation record
Part IV: STM32 interrupt control programming
自旋与sleep的区别
Installation and testing of pyflink
Boot - Prometheus push gateway use
tensorflow 1.14指定gpu运行设置
Supersocket 1.6 creates a simple socket server with message length in the header
[JS] obtain the N days before and after the current time or the n months before and after the current time (hour, minute, second, year, month, day)
Lldp compatible CDP function configuration
Build your own website (17)
Openjudge noi 1.7 10: simple password
UI控件Telerik UI for WinForms新主题——VS2022启发式主题
Address information parsing in one line of code
Dell笔记本周期性闪屏故障
Segmenttree
Batch obtain the latitude coordinates of all administrative regions in China (to the county level)
「笔记」折半搜索(Meet in the Middle)