如何使用< col>标签正确,它是否支持所有浏览器? [英] How to use <col> tag correctly and is it supported in all browser?

查看:258
本文介绍了如何使用< col>标签正确,它是否支持所有浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< col> 标记的用途是什么?它是否在所有浏览器中都支持?

What is the use of <col> tag and is it supported in all browser?

我在尝试< col style =background:red> 我在Firefox 3上。

I was trying <col style="background:red"> but it's not working. I'm on 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中不被弃用,因此应支持(只要用户界面允许)由任何平台上的每个当前浏览器。

The tag is defined in HTML 4.01 (1997) and not deprecated in XHTML, so it should be supported (as far as the user interface allows) by every current browser on any platform.

这篇关于如何使用&lt; col&gt;标签正确,它是否支持所有浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆