亚洲国产精品人久久,亚洲va国产日韩欧美精品色婷婷,久久久久88色偷偷,免费人成黄页在线观看国际

17站長(zhǎng)網(wǎng)

Html標(biāo)簽教程

HTML <!DOCTYPE> 聲明HTML <!--...--> 注釋標(biāo)簽HTML <bdi> 標(biāo)簽HTML <base> 標(biāo)簽HTML <b> 標(biāo)簽HTML <audio> 標(biāo)簽HTML <article> 標(biāo)簽HTML <aside> 標(biāo)簽HTML <area> 標(biāo)簽HTML <address> 標(biāo)簽HTML <abbr> 標(biāo)簽HTML <a> 標(biāo)簽HTML <cite> 標(biāo)簽HTML <canvas> 標(biāo)簽HTML <caption> 標(biāo)簽HTML <button> 標(biāo)簽HTML <br/> 標(biāo)簽HTML <body> 標(biāo)簽HTML <blockquote> 標(biāo)簽HTML <bdo> 標(biāo)簽HTML <command> 標(biāo)簽HTML <colgroup> 標(biāo)簽HTML <code> 標(biāo)簽HTML <col> 標(biāo)簽HTML <del> 標(biāo)簽HTML <details> 標(biāo)簽HTML <dd> 標(biāo)簽HTML <datalist> 標(biāo)簽HTML <em> 標(biāo)簽HTML <dt> 標(biāo)簽HTML <dl> 標(biāo)簽HTML <div> 標(biāo)簽HTML <dialog> 標(biāo)簽HTML <dfn> 標(biāo)簽HTML <header> 標(biāo)簽HTML <form> 標(biāo)簽HTML <head> 標(biāo)簽HTML <footer> 標(biāo)簽HTML <font> 標(biāo)簽HTML <figure> 標(biāo)簽HTML <figcaption> 標(biāo)簽HTML <embed> 標(biāo)簽HTML <fieldset> 標(biāo)簽HTML <kbd> 標(biāo)簽HTML <ins> 標(biāo)簽HTML <img> 標(biāo)簽HTML <input> 標(biāo)簽HTML <i> 標(biāo)簽HTML <hr> 標(biāo)簽HTML <html> 標(biāo)簽HTML <h1> - <h6> 標(biāo)簽HTML5 <hgroup>標(biāo)簽HTML <map> 標(biāo)簽HTML <link> 標(biāo)簽HTML <li> 標(biāo)簽HTML <label> 標(biāo)簽HTML <legend> 標(biāo)簽HTML <keygen> 標(biāo)簽HTML <object> 標(biāo)簽HTML <noscript> 標(biāo)簽HTML <meter> 標(biāo)簽HTML <nav> 標(biāo)簽HTML <meta> 標(biāo)簽HTML <menu> 標(biāo)簽HTML5 <mark> 標(biāo)簽HTML <option> 標(biāo)簽HTML <output> 標(biāo)簽HTML <optgroup> 標(biāo)簽HTML <ol> 標(biāo)簽HTML <rp> 標(biāo)簽HTML <rt> 標(biāo)簽HTML <q> 標(biāo)簽HTML <progress> 標(biāo)簽HTML <pre> 標(biāo)簽HTML <param> 標(biāo)簽HTML <p> 標(biāo)簽HTML <script> 標(biāo)簽HTML <samp> 標(biāo)簽HTML <s> 標(biāo)簽HTML <ruby> 標(biāo)簽HTML <style> 標(biāo)簽HTML <strong> 標(biāo)簽HTML <strike> 標(biāo)簽HTML <span> 標(biāo)簽HTML <source> 標(biāo)簽HTML <small> 標(biāo)簽HTML <select> 標(biāo)簽HTML <section> 標(biāo)簽HTML <tfoot> 標(biāo)簽HTML <th> 標(biāo)簽HTML <textarea> 標(biāo)簽HTML <td> 標(biāo)簽HTML <tbody> 標(biāo)簽HTML <table> 標(biāo)簽HTML <sup> 標(biāo)簽HTML <sub> 標(biāo)簽HTML <summary> 標(biāo)簽HTML <video> 標(biāo)簽HTML <var> 標(biāo)簽HTML <ul> 標(biāo)簽HTML <u> 標(biāo)簽HTML <tt> 標(biāo)簽HTML <track> 標(biāo)簽HTML <tr> 標(biāo)簽HTML <title> 標(biāo)簽HTML <time> 標(biāo)簽HTML <thead> 標(biāo)簽HTML <wbr> 標(biāo)簽

HTML <colgroup> 標(biāo)簽

html <colgroup> 標(biāo)簽用于對(duì)表格中的列進(jìn)行組合,以便對(duì)其進(jìn)行格式化

使用 <colgroup> 標(biāo)簽可以向整個(gè)列應(yīng)用樣式,而不需要重復(fù)為每個(gè)單元格或每一行設(shè)置樣式

只能在 <table> 元素之內(nèi),在任何一個(gè) <caption> 元素之后,在任何一個(gè) <thead>、<tbody>、<tfoot>、<tr> 元素之前使用 <colgroup> 標(biāo)簽

如果想對(duì) <colgroup> 中的某列定義不同的屬性,可以在 <colgroup> 標(biāo)簽內(nèi)使用 <col> 標(biāo)簽

屬性

屬性描述
align
left
right
center
justify
char
html5 不支持
設(shè)置在列組合中內(nèi)容的水平對(duì)齊方式
char
characterHTML5 不支持
設(shè)置根據(jù)哪個(gè)字符來(lái)對(duì)齊列組中的內(nèi)容
charoff
numberHTML5 不支持
設(shè)置第一個(gè)對(duì)齊字符的偏移量
span
number設(shè)置列組應(yīng)該橫跨的列數(shù)
valign
top
middle
bottom
baseline
HTML5 不支持
定義在列組合中內(nèi)容的垂直對(duì)齊方式
width
pixels
%
relative_length
HTML5 不支持
設(shè)置列組合的寬度

范例

<colgroup> 和 >col> 標(biāo)簽為表格中的三個(gè)列設(shè)置了背景色

<table border="1">
  <colgroup>
    <col span="2" style="background-color:red">
    <col style="background-color:yellow">
  </colgroup>
  <tr>
    <th>ISBN</th>
    <th>Title</th>
    <th>Price</th>
  </tr>
  <tr>
    <td>3476896</td>
    <td>My first HTML</td>
    <td>$53</td>
  </tr>
</table>
返回頂部