<col>
有什么用标签,所有浏览器都支持吗?
我正在尝试 <col style="background:red">
但它不工作。我在使用 Firefox 3。
<table width="100%" border="1">
<col style="background:red">
<caption> Table Caption </caption>
最佳答案
有效,但不影响标题。工作示例:
<html>
<head>
<title></title>
</head>
<body>
<table>
<caption>test</caption>
<col style="background:red" />
<col style="background:blue" />
<tr>
<td>red</td>
<td>blue</td>
</tr>
<tr>
<td>red</td>
<td>blue</td>
</tr>
</table>
</body>
</html>
该标记在 HTML 4.01 (1997) 中定义并且在 XHTML 中未被弃用,因此它应该被任何平台上的每个当前浏览器支持(只要用户界面允许)。
关于css - 如何正确使用 <col> 标签,所有浏览器都支持吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3024534/