英 [gru:p]   美 [ɡrup]  

n.組,團(tuán)體;群,批;(雕塑等的)群像;(英美的)空軍大隊

vt.& vi.使成群,集合

vt.分類,歸類

第三人稱單數(shù): groups 復(fù)數(shù): groups 現(xiàn)在分詞: grouping 過去式: grouped 過去分詞: grouped

html colgroup標(biāo)簽 語法

colgroup標(biāo)簽是什么意思?

作用:對表格中的列進(jìn)行組合,以便對其進(jìn)行格式化。

說明:如需對全部列應(yīng)用樣式,<colgroup> 標(biāo)簽很有用,這樣就不需要對各個單元和各行重復(fù)應(yīng)用樣式了。<colgroup> 標(biāo)簽只能在 table 元素中使用。

注釋:所有主流瀏覽器都支持 <colgroup> 標(biāo)簽。Firefox、Chrome 以及 Safari 僅支持 colgroup 元素的 span 和 width 屬性。

html colgroup標(biāo)簽 示例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table width="100%" border="1">
    <colgroup span="2" align="left"></colgroup>
    <colgroup align="right" style="color:#0000FF;"></colgroup>
    <tr>
        <th>商品種類</th>
        <th>名稱</th>
        <th>價格</th>
    </tr>
    <tr>
        <td>衣服</td>
        <td>襯衣</td>
        <td>53元</td>
    </tr>
    <tr>
        <td>鞋子</td>
        <td>板鞋</td>
        <td>199元</td>
    </tr>
</table>
</body>
</html>

運行實例 ?

點擊 "運行實例" 按鈕查看在線實例

熱門推薦