它们与CSS一起使用吗? (非桌子?)
如何使用?
请举例子。
最佳答案
CSS caption-side属性用于指定相对于表格的标题位置(即表格上方或下方)。
Syntax: caption-side: <value> Possible Values:
* top
* bottom
* inherit
初始值:最高适用于:
带有标题的表继承:是
媒体:视觉示例:
caption {caption-side:bottom;
宽度:自动;文字对齐:左; }
<style type="text/css">
caption {
caption-side: bottom;
width: auto;
text-align: left;
}
</style>
<table border="1">
<caption>This is the caption</caption>
<tr>
<td>Try changing the values to see the effect it has on the position of the caption.</td>
</tr>
<tr>
<td><b>Note:</b> If this is not working, your browser might not support the caption-side property. At the time of writing, browser support for the caption-side property was limited.</td>
</tr>
</table>
关于html - 以当今的现代方式使用“标题” HTML元素的最合适方法是什么?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/4171603/