📜  HTML tr标签

📅  最后修改于: 2020-11-04 00:46:21             🧑  作者: Mango

HTML标签

HTML 标签用于定义表格中的行。的标签可以包含一个或多个头细胞和数据单元格来定义一行HTML表。

标签必须是的直接子代

元素,也可以是以下元素的嵌套子元素,和元素。

句法

    
.......

以下是有关HTML的一些规范

标签

Display Inline
Start tag/End tag Start and End tag
Usage Table content

 


    HTML tr tag
    


 

Example of tr tag

Top Three performers of Winter Olympic Medals
Rank Country Total medals
1 Norway 329
2 United State 282
3 Germany 228

输出:

属性:

特定于标签的属性:

Attribute Value Description
align right
left
center
justify
char
It determines the alignment of the content in the table row. (Not Supported in HTML5)
bgcolor rgb(x,x,x)
#xxxxx
color_name
It defines the background color of the table row. (Not Supported in HTML5)
char character It specifies the alignment of content to the character. (Not Supported in HTML5)
charoff number It specifies the number of character the table row content will be aligned from the character, and which is specified by char attribute. (Not Supported in HTML5)
valign Top
Middle
Bottom
baseline
It specifies the vertical alignment of the table row content. (Not Supported in HTML5)

全局属性:

标签支持HTML中的Global属性。

事件属性:

标签支持HTML中的事件属性。

支持的浏览器

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
Yes Yes Yes Yes Yes