小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

col HTML元素

 小明 2006-11-10

定義

說(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

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章