还有点不明白,能详细解释下 tr td th么?
小白
小白 2016-12-24 15:19:50
0
2
1551
小白
小白

好好学习,天天向上!!!

reply all(2)
数据分析师

I still don’t understand. Can you explain tr td th in detail? -PHP Chinese website Q&A-I still don’t understand. Can you explain tr td th in detail? -PHP Chinese website Q&A

Please watch and learn.

迷茫

tr  行    有几个<tr></tr> 就有几行

td   在表格中我们不提倡说列,td指表格中的每一个单元格, 例如我们来写一个3行3列的表格

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
</head>
<body>
    <table cellpadding="0" cellspacing="0" border="1" width="300">
        <tr>
            <td>1</td>
            <td>2</td>
            <td>3</td>
        </tr>
        <tr>
            <td>4</td>
            <td>5</td>
            <td>6</td>
        </tr>
        <tr>
            <td>7</td>
            <td>8</td>
            <td>9</td>
        </tr>
    </table>
</body>
</html>

可以看出,我们的行有3个,但是我们的单元格有9个

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template