英[gru:p]? ?美[ɡrup]??
n.組,團(tuán)體;群,批;(雕塑等的)群像;(英美的)空軍大隊(duì)
vt. & vi. 使成群,集合
vt.分類,歸類
第三人稱單數(shù): groups 複數(shù): groups 現(xiàn)在分詞: grouping 過去式: grouped 過去分詞: grouped
html colgroup標(biāo)籤 語法
colgroup標(biāo)籤是什麼意思?
作用:對(duì)表格中的欄位進(jìn)行組合,以便對(duì)其進(jìn)行格式化。
說明:如需對(duì)全部列套用樣式,<colgroup> 標(biāo)籤很有用,這樣就不需要對(duì)各個(gè)單元和各行重複應(yīng)用樣式了。 <colgroup> 標(biāo)籤只能在 table 元素中使用。
註解:所有主流瀏覽器都支援 <colgroup> 標(biāo)籤。 Firefox、Chrome 以及 Safari 僅支援 colgroup 元素的 span 和 width 屬性。
html colgroup標(biāo)籤 範(fàn)例
<!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>
執(zhí)行實(shí)例 ?
點(diǎn)擊 "執(zhí)行實(shí)例" 按鈕查看線上實(shí)例