css caption-side attribute definition and usage
1. In css, the caption-side attribute is used to specify the position of the table title. , the table title can be set above the table (default) or below the table
2. Currently, all mainstream browsers support the caption-side attribute, but IE8 must specify !DOCTYPE to support it
css caption-side attribute value
top: The table title is above the table (default)
bottom: The table title is below the table
inherit: inherit the attribute value of the caption-side attribute from the parent element
Syntax format
caption-side:top / bottom / inherit;
Example
css caption-side表格标题属性笔记
学号 | 姓名 | 性别 | 成绩 |
---|---|---|---|
1 | 张三 | 男 | 60 |
2 | 李四 | 男 | 80 |
operation result
The above is the detailed content of How to use css caption-side attribute. For more information, please follow other related articles on the PHP Chinese website!