css-base-细线表格

2021/11/6 23:14:20

本文主要是介绍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>

 



这篇关于css-base-细线表格的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程