abbr.Turkey 土耳其語

html tr標(biāo)籤 語法

作用:定義 HTML 表格中的行。

說明:tr 元素包含一個(gè)或多個(gè)?th?或?td?元素。

註解:所有瀏覽器都支援 <tr> 標(biāo)籤。

html tr標(biāo)籤 範(fàn)例

<html>
<body>

<table border="1">
  <tr>
    <th>Month</th>
    <th>Savings</th>
  </tr>
  <tr>
    <td>January</td>
    <td>0</td>
  </tr>
</table>

</body>
</html>

運(yùn)行實(shí)例?

點(diǎn)擊"運(yùn)行實(shí)例"按鈕查看線上實(shí)例

<html>
  <meta charset="utf-8">
<body>

<table border="1">
  <tr>
    <th>姓名</th>
    <th>年齡</th>
    <th>職位</th>
  </tr>
  <tr>
    <td>西門大官人</td>
    <td>26</td>
    <td>PHP高級(jí)講師</td>
  </tr>
  <tr>
    <td>歐陽克</td>
    <td>28</td>
    <td>PHP高級(jí)講師</td>
  </tr>
</table>

</body>
</html>

運(yùn)行實(shí)例?

點(diǎn)擊"運(yùn)行實(shí)例" 按鈕查看線上實(shí)例

#