rowspan属性怎么使用


当前第2页 返回上一页

html

与<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属性》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...