当前第2页 返回上一页

与<th>标签一起使用时
代码如下
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | <!DOCTYPE html>
<html>
<head>
<title>HTML rowspan</title>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
padding: 6px;
}
</style>
</head>
<body style = "text-align:center" >
<table>
<tr>
<th>Name</th>
<th>Age</th>
<!-- This cell will take up space
in 3 rows -->
<th rowspan= "3" >php中文网</th>
</tr>
<tr>
<td>Tom</td>
<td>24</td>
</tr>
<tr>
<td>Marry</td>
<td>25</td>
</tr>
</table>
</body>
</html>
|
效果如下

本篇文章到这里就全部结束了,更多前端精彩内容大家可以关注php中文网相关栏目教程!!!
以上就是rowspan属性怎么使用的详细内容,更多文章请关注木庄网络博客!
返回前面的内容
相关阅读 >>
rowspan属性怎么使用
更多相关阅读请进入《rowspan属性》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » rowspan属性怎么使用