基本的表格结构

<table>元素用来创造表格,表格的内容进行编写。你需要用起始标签来表示每行的开始。

<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <div>表格的结构</div>
        <table>
            <tr>
                <td>15</td>
                <td>15</td>
                <td>30</td>
            </tr>
            <tr>
                <td>45</td>
                <td>60</td>
                <td>45</td>
            </tr>
            <tr>
                <td>60</td>
                <td>90</td>
                <td>90</td>
            </tr>
        </table>
    </body>
</html>

 

posted @ 2018-07-24 15:27  梦人亭  阅读(264)  评论(0编辑  收藏  举报