Home  >  Article  >  Web Front-end  >  What does the tbody tag mean?

What does the tbody tag mean?

云罗郡主
云罗郡主Original
2019-02-20 15:17:3111325browse

tbody标签什么意思

tbody标签主要定义一段表格主体(正文),使用tbody标签,可以将表格分为一个单独的部分,tbody标签可将表格中的一行或几行合成一组。

html tbody标签 语法

作用:组合 HTML 表格的主体内容。

说明:tbody 元素应该与 thead 和 tfoot 元素结合起来使用。如果您使用 thead、tfoot 以及 tbody 元素,您就必须使用全部的元素。它们的出现次序是:thead、tfoot、tbody,这样浏览器就可以在收到所有数据前呈现页脚了。您必须在 table 元素内部使用这些标签。

注释:在默认情况下这些元素不会影响到表格的布局。不过,您可以使用 CSS 使这些元素改变表格的外观。ae20bdd317918ca68efdc799512a9b39 内部必须拥有 a34de1251f0d9fe1e645927f19a896e8 标签!ae20bdd317918ca68efdc799512a9b39、92cee25da80fac49f6fb6eec5fd2c22a 以及 06669983c3badb677f993a8c29d18845 很少被使用,这是因为糟糕的浏览器支持。

html tbody标签 示例

<html>
<head>
<style type="text/css">
thead {color:green}
tbody {color:blue;height:50px}
tfoot {color:red}
</style>
</head>
<body>
<table border="1">
<thead>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
</thead>
<tbody>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Sum</td>
<td>$180</td>
</tr>
</tfoot>
</table>
</body>
</html>


The above is the detailed content of What does the tbody tag mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What does table tag mean?Next article:What does table tag mean?