abbr.Chad 乍得;Tank Destroyer 坦克殲擊手

html td標(biāo)簽 語法

作用:定義 HTML 表格中的標(biāo)準(zhǔn)單元格。

說明:HTML 表格有兩類單元格:表頭單元 - 包含頭部信息(由 th 元素創(chuàng)建)標(biāo)準(zhǔn)單元 - 包含數(shù)據(jù)(由 td 元素創(chuàng)建)td 元素中的文本一般顯示為正常字體且左對齊。

注釋:請使用 colspan 和 rowspan 屬性來實(shí)現(xiàn)內(nèi)容橫跨多個行或列。

html td標(biāo)簽 示例

<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>
<body>

<table border="1">
  <tr>
    <th>name</th>
    <th>job</th>
  </tr>
  <tr>
    <td>滅絕師太</td>
    <td>PHP中文網(wǎng)高級講師</td>
  </tr>
    <tr>
    <td>歐陽克</td>
    <td>PHP中文網(wǎng)講師</td>
  </tr>
    <tr>
    <td>韋小寶</td>
    <td>PHP中文網(wǎng)初級講師</td>
  </tr>
</table>

</body>
</html>

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

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