英 [gru:p]? ?美 [ɡrup]??

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

vt.& vi.使成群,集合

vt.分類,歸類

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

html colgroup標(biāo)簽 語(yǔ)法

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

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

說(shuō)明:如需對(duì)全部列應(yīng)用樣式,<colgroup> 標(biāo)簽很有用,這樣就不需要對(duì)各個(gè)單元和各行重復(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>價(jià)格</th>
    </tr>
    <tr>
        <td>衣服</td>
        <td>襯衣</td>
        <td>53元</td>
    </tr>
    <tr>
        <td>鞋子</td>
        <td>板鞋</td>
        <td>199元</td>
    </tr>
</table>
</body>
</html>

運(yùn)行實(shí)例 ?

點(diǎn)擊 "運(yùn)行實(shí)例" 按鈕查看在線實(shí)例