免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開(kāi)通VIP
col HTML元素

定義

說(shuō)明基于列的表格缺省屬性。

Specifies column-based defaults for the table properties.

注釋

COL 元素可嵌套于 COLGROUP 元素內(nèi)。如果是這樣的話,嵌套的 COL 屬性將覆蓋 COLGROUP 屬性。

你可使用元素 COL 和 COLGROUP 用于類似的目的。但是,你必須使用 COLGROUP 元素來(lái)決定表格內(nèi)部分隔線(rules)應(yīng)該處于的位置。見(jiàn)下面的的示例。

使用 SPAN 屬性可以指定 COLGROUP 定義的表格列數(shù)。該屬性的缺省值為 1。

TABLE 對(duì)象及其關(guān)聯(lián)元素有一個(gè)獨(dú)立的表格對(duì)象模型,該模式使用不同于常規(guī)對(duì)象模型的方法。要獲得關(guān)于表格對(duì)象模型更多的信息,請(qǐng)參看如何動(dòng)態(tài)生成表格。

此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的腳本中可用。

此元素是塊元素。

此元素不需要關(guān)閉標(biāo)簽。

COL elements can be nested within a COLGROUP element. If this is done, the nested COL attributes override the COLGROUP attributes.

You can use the COL and COLGROUP elements for similar purposes. However, you must use the COLGROUP element to determine where table internal dividing lines (rules) should go. This is illustrated in the example below.

Use the SPAN attribute to specify the number of table columns that the COLGROUP defines. This attribute has a default value equal to one.

The table object and its associated elements have a separate table object model, which uses different methods than the general object model. For more information on the table object model, see How to Build Tables Dynamically.

This element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0.

This element is a block element.

This element does not require a closing tag.

示例代碼

下面的例子使用了 COL 元素說(shuō)明表格中缺省列的特征。

This example uses the col element to specify characteristics for default columns in a table.

<HTML>
<BODY>
<TABLE BORDER="2" RULES="groups">
<!-- RULES is set to "groups", which has no effect in this sample. For this 
attribute to work, you must use COLSPAN to define the groups of columns.-->
    <COL SPAN="2" STYLE="color:red">
    <COL STYLE="color:blue">
    <TR>
        <TD>This column is in the first group.</TD>
        <TD>This column is in the first group.</TD>
        <TD>This column is in the second group.</TD>
    </TR>
    <TR>
        <TD>This column is in the first group.</TD>
        <TD>This column is in the first group.</TD>
        <TD>This column is in the second group.</TD>
    </TR>
</TABLE>
</BODY>
</HTML>

另見(jiàn)

colGroup

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)
打開(kāi)APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
重新發(fā)現(xiàn)HTML表格 | CSS | 前端觀察
Jquery源碼分析之二:生成Dom元素
小書匠語(yǔ)法說(shuō)明之表格 | 小書匠
[05]HTML基礎(chǔ)之表格標(biāo)簽
HTML <colgroup> 標(biāo)簽
全局 CSS 樣式 · Bootstrap 中文文檔
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服