Baseline Widely available *
HTMLTableElement
æ¥å£å¨å¸¸ç¨ç HTMLElement
æ¥å£çåºç¡ä¸ï¼æä¾äºä¸é¨ç屿§åæ¹æ³æ¥å¤ç HTML ææ¡£ä¸è¡¨æ ¼çå¸å±ä¸å±ç¤ºãéè¿ç»§æ¿ï¼å®ä¹å¯ä»¥è®¿é®ç¶æ¥å£ HTMLElement
ä¸çæåã
must be a string
屿§ç»§æ¿èªç¶æ¥å£ï¼HTMLElement
ã
HTMLTableElement.caption
è¿æ¯ä¸ä¸ª HTMLTableCaptionElement
ï¼è¡¨ç¤ºä½ä¸ºåå
ç´ ä¸ç第ä¸ä¸ª <caption>
ï¼å¦ææ¾ä¸å°å为 null
ãå½è®¾ç½®æ¤å±æ§æ¶ï¼å¦æç»åºçå¯¹è±¡ä¸æ¯ä¸ä¸ª <caption>
ï¼ä¸ä¸ªå¸¦æ HierarchyRequestError
ååçå¼å¸¸ DOMException
ä¼è¢«æåºãå¦æè®¾ç½®äºæ£ç¡®ç对象ï¼å®ä¼è¢«ä½ä¸ºç¬¬ä¸ä¸ªåå
ç´ æå
¥ DOM æ ä¸ï¼åæ¶åå
ç´ ä¸ç第ä¸ä¸ª <caption>
ä¼è¢«ç§»é¤ï¼å¦æåå¨çè¯ã
HTMLTableElement.tHead
è¿æ¯ä¸ä¸ª HTMLTableSectionElement
ï¼è¡¨ç¤ºåå
ç´ ä¸ç第ä¸ä¸ª <thead>
ï¼å¦ææ¾ä¸å°å为 null
ãå½è®¾ç½®æ¤å±æ§æ¶ï¼å¦æç»åºçå¯¹è±¡ä¸æ¯ä¸ä¸ª <thead>
ï¼ä¸ä¸ªå¸¦æ HierarchyRequestError
ååçå¼å¸¸ DOMException
ä¼è¢«æåºãå¦æè®¾ç½®äºæ£ç¡®ç对象ï¼å®ä¼è¢«ç«å³æå
¥å° DOM æ 䏿¢ä¸æ¯ <caption>
ä¹ä¸æ¯ <colgroup>
ç第ä¸ä¸ªå
ç´ ä¹åï¼æè
ç´æ¥è¢«ä½ä¸ºæåä¸ä¸ªå
ç´ æå
¥ï¼å¦ææ¾ä¸å°ä¸è¿°å
ç´ çè¯ï¼ï¼åæ¶åå
ç´ ä¸ç第ä¸ä¸ª <thead>
ä¼è¢«ç§»é¤ï¼å¦æåå¨çè¯ã
è¿æ¯ä¸ä¸ª HTMLTableSectionElement
ï¼è¡¨ç¤ºåå
ç´ ä¸ç第ä¸ä¸ª <tfoot>
ï¼å¦ææ¾ä¸å°å为 null
ãå½è®¾ç½®æ¤å±æ§æ¶ï¼å¦æç»åºçå¯¹è±¡ä¸æ¯ä¸ä¸ª <tfoot>
ï¼ä¸ä¸ªå¸¦æ HierarchyRequestError
ååçå¼å¸¸ DOMException
ä¼è¢«æåºãå¦æè®¾ç½®äºæ£ç¡®ç对象ï¼å®ä¼è¢«ç«å³æå
¥å° DOM æ 䏿¢ä¸æ¯ <caption>
ã<colgroup>
ä¹ä¸æ¯ <thead>
ç第ä¸ä¸ªå
ç´ ä¹åï¼æè
ç´æ¥è¢«ä½ä¸ºæåä¸ä¸ªå
ç´ æå
¥ï¼å¦ææ¾ä¸å°ä¸è¿°å
ç´ çè¯ï¼ï¼åæ¶åå
ç´ ä¸ç第ä¸ä¸ª <tfoot>
ä¼è¢«ç§»é¤ï¼å¦æåå¨çè¯ã
HTMLTableElement.rows
åªè¯»
è¿åä¸ä¸ªå®æ¶ç HTMLCollection
ï¼å®å
å«å
ç´ ä¸çææè¡ï¼ä¹å°±æ¯åå
ç´ ä¸çææ <tr>
ï¼æè
æ¯ <thead>
ã<tbody>
å <tfoot>
ä¸è
åå
ç´ ä¸çå
¶ä¸ä¸ä¸ªåå
ç´ ã<thead>
ä¸çè¡ä¼æç
§ DOM æ ç顺åºåºç°å¨é¦ä½ï¼<tbody>
ä¸çè¡åºç°å¨æ«ä½ï¼ä¹ä¼æç
§ DOM æ ç顺åºãHTMLCollection
对象æ¯å®æ¶çï¼å½ HTMLTableElement
åçååæ¶ä¼èªå¨æ´æ°ã
HTMLTableElement.tBodies
åªè¯»
è¿åä¸ä¸ªå®æ¶ç HTMLCollection
ï¼å®å
å«å
ç´ ä¸ææç <tbody>
ãHTMLCollection
对象æ¯å®æ¶çï¼å½ HTMLTableElement
åçååæ¶ä¼èªå¨æ´æ°ã
è¦åï¼ ä»¥ä¸å±æ§å·²ç»è¿æ¶ï¼åºå½é¿å 使ç¨å®ä»¬ã
HTMLTableElement.align
å·²å¼ç¨
Is a DOMString
containing an enumerated value reflecting the align
attribute. It indicates the alignment of the element's contents with respect to the surrounding context. The possible values are "left"
, "right"
, and "center"
.
HTMLTableElement.bgColor
å·²å¼ç¨
Is a DOMString
containing the background color of the cells. It reflects the obsolete bgcolor
attribute.
HTMLTableElement.border
å·²å¼ç¨
Is a DOMString
containing the width in pixels of the border of the table. It reflects the obsolete border
attribute.
HTMLTableElement.cellPadding
å·²å¼ç¨
Is a DOMString
containing the width in pixels of the horizontal and vertical sapce between cell content and cell borders. It reflects the obsolete cellpadding
attribute.
HTMLTableElement.cellSpacing
å·²å¼ç¨
Is a DOMString
containing the width in pixels of the horizontal and vertical separation between cells. It reflects the obsolete cellspacing
attribute.
HTMLTableElement.frame
å·²å¼ç¨
Is a DOMString
containing the type of the external borders of the table. It reflects the obsolete frame
attribute and can take one of the following values: "void"
, "above"
, "below"
, "hsides"
, "vsides"
, "lhs"
, "rhs"
, "box"
, or "border"
.
HTMLTableElement.rules
å·²å¼ç¨
Is a DOMString
containing the type of the internal borders of the table. It reflects the obsolete rules
attribute and can take one of the following values: "none"
, "groups"
, "rows"
, "cols"
, or "all"
.
HTMLTableElement.summary
å·²å¼ç¨
Is a DOMString
containing a description of the purpose or the structure of the table. It reflects the obsolete summary
attribute.
HTMLTableElement.width
å·²å¼ç¨
Is a DOMString
containing the length in pixels or in percentage of the desired width fo the entire table. It reflects the obsolete width
attribute.
ç»§æ¿èªç¶æ¥å£ï¼HTMLElement
ã
HTMLTableElement.createTHead()
è¿åä¸ä¸ª HTMLElement
ï¼è¡¨ç¤ºåå
ç´ ä¸ç第ä¸ä¸ª <thead>
ã妿æ¾ä¸å°ï¼åå建ä¸ä¸ªæ°çå¹¶ä¸ç«å³æå
¥å° DOM æ 䏿¢ä¸æ¯ <caption>
ä¹ä¸æ¯ <colgroup>
ç第ä¸ä¸ªå
ç´ ä¹åï¼æè
ç´æ¥è¢«ä½ä¸ºæåä¸ä¸ªå
ç´ æå
¥ï¼å¦ææ¾ä¸å°ä¸è¿°å
ç´ çè¯ï¼ã
HTMLTableElement.deleteTHead()
ç§»é¤åå
ç´ ä¸ç第ä¸ä¸ª <thead>
ã
è¿åä¸ä¸ª HTMLElement
ï¼è¡¨ç¤ºåå
ç´ ä¸ç第ä¸ä¸ª <tfoot>
ã妿æ¾ä¸å°ï¼åå建ä¸ä¸ªæ°çå¹¶ä¸ç«å³æå
¥å° DOM æ 䏿¢ä¸æ¯ <caption>
ã<colgroup>
ä¹ä¸æ¯ <thead>
ç第ä¸ä¸ªå
ç´ ä¹åï¼æè
ç´æ¥è¢«ä½ä¸ºæåä¸ä¸ªå
ç´ æå
¥ï¼å¦ææ¾ä¸å°ä¸è¿°å
ç´ çè¯ï¼ã
ç§»é¤åå
ç´ ä¸ç第ä¸ä¸ª <tfoot>
ã
HTMLTableElement.createCaption()
è¿åä¸ä¸ª HTMLElement
ï¼è¡¨ç¤ºåå
ç´ ä¸ç第ä¸ä¸ª <caption>
ã妿æ¾ä¸å°ï¼åå建ä¸ä¸ªæ°ç并䏿å
¥å° DOM æ ä¸ä½ä¸º <table>
ç第ä¸ä¸ªåå
ç´ ã
HTMLTableElement.deleteCaption()
ç§»é¤åå
ç´ ä¸ç第ä¸ä¸ª <caption>
ã
HTMLTableElement.insertRow()
è¿åä¸ä¸ª HTMLTableRowElement
ï¼è¡¨ç¤ºè¡¨æ ¼ä¸çä¸ä¸ªæ°è¡ãå®ä¼è¢«ç«å³æå
¥å°è¡éåä¸ç»å® index
ä½ç½®æè¡¨ç¤ºç <tr>
å
ç´ ä¹åã妿æå¿
è¦ä¸ä¸ª <tbody>
ä¼è¢«å建ã妿 index
å¼ä¸º -1
ï¼è¿ä¸ªæ°è¡ä¼è¢«è¿½å å°éåä¸ã妿 index
å¼å°äº -1
æè
大äºéåä¸çè¡æ»æ°ï¼ä¸ä¸ªå¸¦æ IndexSizeError
å¼çå¼å¸¸ DOMException
ä¼åçã
HTMLTableElement.deleteRow()
ç§»é¤ä¸åæ°ä¸ç»å® index
å¼ç¸å
³çè¡ã妿 index
å¼ä¸º -1
ï¼æåä¸è¡ä¼è¢«ç§»é¤ï¼å¦æ index
å¼å°äº -1
æè
大äºéåä¸çè¡æ»æ°ï¼ä¸ä¸ªå¸¦æ IndexSizeError
å¼çå¼å¸¸ DOMException
ä¼åçã
<table>
ãRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4