Blogger Information
Blog 4
fans 0
comment 0
visits 1727
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
9月6日作业
张进峰的博客
Original
317 people have browsed it

使用CSS制作一张带有四个圆角的表格

实例

<!DOCTYPE html>

<html lang="en">



<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <meta http-equiv="X-UA-Compatible" content="ie=edge">

    <title>Document</title>

    <style>

        table {

            border-collapse: separate;

        }

        

        table tr td {

            padding: 5px;

            border-radius: 4px;

        }

    </style>

</head>



<body>

    <table border="1">

        <tr>

            <td>商品名称</td>

            <td>单价</td>

            <td>数量</td>

            <td>合计</td>

            <td>产地</td>

        </tr>

    </table>

</body>



</html>

实例

<!DOCTYPE html>

<html lang="en">



<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <meta http-equiv="X-UA-Compatible" content="ie=edge">

    <title>Document</title>

    <style>

        table {

            border-collapse: separate;

        }

        

        table tr td {

            padding: 5px;

            border-radius: 4px;

        }

    </style>

</head>



<body>

    <table border="1">

        <tr>

            <td>商品名称</td>

            <td>单价</td>

            <td>数量</td>

            <td>合计</td>

            <td>产地</td>

        </tr>

    </table>

</body>



</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例


行实例 »

点击 "运行实例" 按钮查看在线实例


Correction status:unqualified

Teacher's comments:1. 代码没放到代码块中 2. 没有注释 3. 没有总结
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post