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>

 

上一篇:【前端基础】列表标签 & 表格标签


下一篇:struts文件上传,获取文件名和文件类型