<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # HTML &lt;th&gt; 標簽 ## 實例 普通的 HTML 表格,包含兩行兩列: ``` <table border="1"> <tr> <th>Company</th> <th>Address</th> </tr> <tr> <td>Apple, Inc.</td> <td>1 Infinite Loop Cupertino, CA 95014</td> </tr> </table> ``` ## 瀏覽器支持 | IE | Firefox | Chrome | Safari | Opera | | --- | --- | --- | --- | --- | 所有瀏覽器都支持 &lt;th&gt; 標簽。 ## 定義和用法 定義表格內的表頭單元格。 HTML 表單中有兩種類型的單元格: * 表頭單元格 - 包含表頭信息(由 th 元素創建) * 標準單元格 - 包含數據(由 td 元素創建) th 元素內部的文本通常會呈現為居中的粗體文本,而 td 元素內的文本通常是左對齊的普通文本。 ## 提示和注釋 提示:如果需要將內容橫跨多個行或列,請使用 colspan 和 rowspan 屬性。 ## HTML 與 XHTML 之間的差異 在 HTML 4.01 中,th 元素的 "bgcolor"、"height"、"width" 以及 "nowrap" 屬性是不被推薦使用的。 在 XHTML 1.0 Strict DTD 中,th 元素的 "bgcolor"、"height"、"width" 以及 "nowrap" 屬性是不被支持。 ## 可選的屬性 | 屬性 | 值 | 描述 | | --- | --- | --- | | [abbr](/tags/att_th_abbr.asp "HTML &lt;th&gt; 標簽的 abbr 屬性") | _text_ | 規定單元格中內容的縮寫版本。 | | [align](/tags/att_th_align.asp "HTML &lt;th&gt; 標簽的 align 屬性") | `left` `right` `center` `justify` `char` | 規定單元格內容的水平對齊方式。 | | [axis](/tags/att_th_axis.asp "HTML &lt;th&gt; 標簽的 axis 屬性") | *category_name* | 對單元格進行分類。 | | [bgcolor](/tags/att_th_bgcolor.asp "HTML &lt;th&gt; 標簽的 bgcolor 屬性") | _rgb(x,x,x)_ _#xxxxxx_ _colorname_ | 不推薦使用。請使用樣式替代它。規定表格單元格的背景顏色。 | | [char](/tags/att_th_char.asp "HTML &lt;th&gt; 標簽的 char 屬性") | _character_ | 規定根據哪個字符來進行內容的對齊。 | | [charoff](/tags/att_th_charoff.asp "HTML &lt;th&gt; 標簽的 charoff 屬性") | _number_ | 規定對齊字符的偏移量。 | | [colspan](/tags/att_th_colspan.asp "HTML &lt;th&gt; 標簽的 colspan 屬性") | _number_ | 設置單元格可橫跨的列數。 | | [headers](/tags/att_th_headers.asp "HTML &lt;th&gt; 標簽的 headers 屬性") | _idrefs_ | 由空格分隔的表頭單元格 ID 列表,為數據單元格提供表頭信息。 | | [height](/tags/att_th_height.asp "HTML &lt;th&gt; 標簽的 height 屬性") | _pixels_ _%_ | 不推薦使用。請使用樣式替代它。規定表格單元格的高度。 | | [nowrap](/tags/att_th_nowrap.asp "HTML &lt;th&gt; 標簽的 nowrap 屬性") | nowrap | 不推薦使用。請使用樣式取而代之。規定單元格中的內容是否折行。 | | [rowspan](/tags/att_th_rowspan.asp "HTML &lt;th&gt; 標簽的 rowspan 屬性") | _number_ | 規定單元格可橫跨的行數。 | | [scope](/tags/att_th_scope.asp "HTML &lt;th&gt; 標簽的 scope 屬性") | `col` `colgroup` `row` `rowgroup` | 定義將表頭數據與單元數據相關聯的方法。 | | [valign](/tags/att_th_valign.asp "HTML &lt;th&gt; 標簽的 valign 屬性") | `top` `middle` `bottom` `baseline` | 規定單元格內容的垂直排列方式。 | | [width](/tags/att_th_width.asp "HTML &lt;th&gt; 標簽的 width 屬性") | _pixels_ _%_ | 不推薦使用。請使用樣式取而代之。規定表格單元格的寬度。 | ## 全局屬性 &lt;th&gt; 標簽支持 [HTML 中的全局屬性](/tags/html_ref_standardattributes.asp)。 ## 事件屬性 &lt;th&gt; 標簽支持 [HTML 中的事件屬性](/tags/html_ref_eventattributes.asp)。 ## 相關頁面 HTML DOM 參考手冊:[TableHeader 對象](/jsref/dom_obj_tablehead.asp "HTML DOM TableHeader 對象")
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看