ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

7.表格标签.html

2021-05-08 20:03:33  阅读:19  来源: 互联网

标签:hover 表格 greenyellow color 标签 tr tom6 html


<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    
    <style type="text/css">
        
        tr:hover{
            background-color: greenyellow;
        }
        
    </style>
    
    <body>
        
        <table border="1" bordercolor="red" width="400" height="400" cellspacing="0" bgcolor="aqua" <!--background="img/3.jpg"-->>
            <caption>表格标题</caption>
            <tr>
                <th>姓名</th><th>年龄</th><th>性别</th>
            </tr>
            <tr align="center">
                <td>jack</td><td>18</td><td>男</td>
            </tr>
            <tr>
                <td colspan="2">rose</td><td>女</td>
            </tr>
            <tr>
                <td rowspan="2">tom</td><td>6</td><td>女</td>
            </tr>
            <tr>
                <td>3</td><td>女</td>
            </tr>
            
        </table>
        
    </body>
</html>

 

标签:hover,表格,greenyellow,color,标签,tr,tom6,html
来源: https://www.cnblogs.com/luowenyang/p/14746294.html

专注分享技术,共同学习,共同进步。侵权联系[admin#icode9.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有