css合并单元格的方法:首先创建一个html示例文件;然后通过设置colspan来合并列;最后再通过设置rowspan合并行即可。
推荐:《css视频教程》
css table之合并单元格
colspan 是合并列,rowspan是合并行,合并行的时候,比如rowspan="2",它的下一行tr会少一列;合并列的时候 colspan="2",此行的列会少一列
<table border="1" style={{margin:200}}> <tbody> <tr> <th colspan="2">我是占位符</th> <th colspan="2">我是占位符</th> </tr> <tr> <th rowspan="2">我是占位符</th> <th>我是占位符</th> <th>我是占位符</th> <th>我是占位符</th> </tr> <tr> <th>我是占位符</th> <th>我是占位符</th> <th>我是占位符</th> </tr> </tbody> </table>效果
css3斜线表头
<td > <div class="biaotou"> </div></td>.biaotou { border-top: 200px #199fff solid; /*上边框宽度等于表格第一行行高*/ border-left: 200px #ff8838 solid; /*左边框宽度等于表格第一行第一格宽度*/ }
.cn域名市场不好?一张图告诉你.cn发展有多迅猛!汽车仿真测试领域频频出手?天翼云为安全出行再次加码腾讯云服务器租用怎么样的90万美元欲收购ADAY.com!这位神秘终端到底是谁?电脑中的Windows Problem Reporting进程磁盘占用很高如何禁用华北学生云服务器配置虚拟主机能当挂机宝么怎样租用便宜云服务器