其他分享
首页 > 其他分享> > css-base-细线表格

css-base-细线表格

作者:互联网

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
       
        table,td{
            border:none;
            font-size: 14px;
            border-collapse: collapse;
        }
        table tr:hover{
            background-color: #ccc;
            cursor: pointer;
        }
        table td{
            border-top: 1px solid #ddd;
            padding: 10px;
        }
    </style>
</head>
<body>
      <table border="1">
        <thead>
            <tr>
                <td>编号1</td>
                <td>标题2</td>
                <td>标题3</td>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>a</td>
                <td>helloworld</td>
                <td>helloworld</td>
            </tr>
           
        </tbody>
        <tooft>
            <tr>
                <td>b</td>
                <td>你好balabalabala</td>
                <td>你好balabalabala</td>
            </tr>
        </tooft>
    </table>
</body>
</html>

 

标签:collapse,helloworld,细线,base,balabalabala,table,td,border,css
来源: https://www.cnblogs.com/ABC-wangyuhan/p/15518632.html