📅  最后修改于: 2020-11-04 00:50:38             🧑  作者: Mango
HTML标签
HTML
标签指定HTML表中的列组。用于一个或多个父容器元素以在HTML表中应用不同的属性。
注意:标签必须与之后的元素和之前要么元素。
句法
以下是有关HTML的一些规范
标签
Display |
None |
Start tag/End tag |
Start tag and End Tag |
Usage |
HTML tables |
例
Colgroup tag
Example of Colgroup Tag
Sr.No |
Product |
Price |
1 |
Rice |
85 |
2 |
Butter |
260 |
3 |
Mango |
125 |
输出:
属性
Attribute |
Value |
Description |
align |
- left
- center
- right
- justify
- char
|
It specifies the alignment of the column content. (Not supported in HTML5). |
char |
character |
It specifies the alignment of the content in a column group to the character. (Not supported in HTML5). |
charoff |
number |
It sets the number of characters to offset the column data from the alignment character specified by the char attribute. (Not supported in HTML5). |
span |
number |
It specifies the number of columns a colgroup should span. |
valign |
- top
- middle
- bottom
- baseline
|
It specifies the vertical alignment of the column group. (Not supported in HTML5). |
width |
|
It specifies the width of the group of column. (Not supported in HTML5). |
全局属性
HTML
标记支持HTML中的所有全局属性。
事件属性
HTML
标签支持HTML中的所有事件属性。
支持的浏览器
Element |
Chrome |
IE |
Firefox |
Opera |
Safari |
|
Yes |
Yes |
Yes |
Yes |
Yes |