有什么用<col>
标签以及所有浏览器都支持它吗?
我正在尝试<col style="background:red">
但它不起作用。我使用的是火狐 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 中并未被弃用,因此任何平台上的每个当前浏览器都应该支持它(只要用户界面允许)。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)