發新話題

Table Head <表單標題> <thead> HTML元素 - thead

Table Head <表單標題> <thead> HTML元素 - thead

<表單標題> <thead>   Table Head
定義
   格式元素,說明<表單>(<table>)的標題資訊,通常是指欄的標題,出現於表單的最上層,並會再次出現在任何表單內分列的最上層,此元素會用在兩種情形:一般結構化<表單>內,並在<構件>(<c>)或<附屬成分描述>(<dsc>)中建立其格式。
  一般表單的資訊可參見相關元素<表單>和<表單群組>(<tgroup>)。
可包含元素
  表單列。
可出現元素
  構件、第一層、第二層、第三層、第四層、第五層、第六層、第七層、第八層、第九層、第十層、第十一層、附屬資料描述、表單群組。

屬性
其他樣式(ALTRENDER)#IMPLIED, CDATA
開放限制(AUDIENCE)#IMPLIED, external, internal
識別代碼(ID) #IMPLIED, ID
垂直位置(VALIGN)#IMPLIED, top, middle, bottom
  
範例
   <表單 外框="none">
      <表單群組 欄數="3">
        <表單欄規格 欄號="1" 欄位名稱="1" 水平位置="left" 欄寬="50pt"/>
        <表單欄規格 欄號="2" 欄位名稱="2" 水平位置="left" 欄寬="50pt"/>
        <表單欄規格 欄號="3" 欄位名稱="3" 水平位置="left" 欄寬="50pt"/>
        <表單標題>
          <表單列>
            <表單款目 欄位名稱="1">Major Family Members</表單款目>
            <表單款目 欄位名稱="2">Spouses</表單款目>
            <表單款目 欄位名稱="3">Children</表單款目>
          </表單列>
        </表單標題>
        <表單實體>
          <表單列>
            <表單款目 欄位名稱="1">John Albemarle (1760-1806)</表單款目>
            <表單款目 欄位名稱="2">Mary Frances Delaney (1769-1835)</表單款目>
            <表單款目 欄位名稱="3">John Delaney Albemarle (1787-1848)</表單款目>
          </表單列> . . .
        </表單實體>
      </表單群組>
    </表單>


定義

指定哪些行作為表頭。
Designates rows as the table's header.
註釋
THEAD 元素內包含的有效標籤有:
  • TD
  • TH
  • TR
任何給定的 table 對象都只能定義一個 tHead。
element is available in HTML as !
table 對象及其相關的元素有各自獨立的表格對象模型,這與常規對象模型改採用的方法有很大不同。要獲得關於表格對象模型更多的信息,請參看如何動態生成表格。
此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的腳本中可用。
此元素不會改變顯示。
此元素需要關閉標籤。

Valid tags within the THEAD element include:
  • TD
  • TH
  • TR
model. For more information.
Only one tHead can be specified for any given table object.
The table object and its associated elements have a separate table object model,which utilizes different methods than the general object model. Formore information on the table object model, see How to Build TablesDynamically.
This element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0.
This element is not rendered.
This element requires a closing tag.
示例代碼
複製內容到剪貼板
代碼:
<TABLE>
<THEAD>
<TR>
<TD>
此文本位於表頭。
</TD>
</TR>
</THEAD>
<TBODY>
<TR>
<TD>
此文本位於表格主體。
</TD>
</TR>
</TBODY>
</TABLE>

TOP

猛抄猛記猛背

TOP

發新話題

本站所有圖文均屬網友發表,僅代表作者的觀點與本站無關,如有侵權請通知版主會盡快刪除。