HTML CSS Reference/HTML Tag Reference/tbody

Материал из Web эксперт
Перейти к: навигация, поиск

"tbody" CSS Attributes and JavaScript Style Properties

Names noted with an asterisk (*) are JavaScript properties only.
+----------------+--------------------------------------------------------------+
| CSS            |!important                      background                    |
| Attributes     |background-attachment           background-color              |
| and            |background-image                background-position           |
| JavaScript     |background-position-x           background-position-y         |
| Style          |background-repeat               behavior                      |
| Properties     |clear                           color                         |
|                |cursor                          direction                     |
|                |display                         font                          |
|                |font-family                     font-size                     |
|                |font-style                      font-variant                  |
|                |font-weight                     layout-grid                   |
|                |layout-grid-mode                letter-spacing                |
|                |line-height                     page-break-after              |
|                |page-break-before               pixelBottom(*)                |
|                |pixelHeight(*)                  pixelLeft(*)                  |
|                |pixelRight(*)                   pixelTop(*)                   |
|                |pixelWidth(*)                   posBottom(*)                  |
|                |posHeight(*)                    posLeft(*)                    |
|                |posRight(*)                     posTop(*)                     |
|                |posWidth(*)                     text-autospace                |
|                |text-decoration                 text-transform                |
|                |text-underline-position         textDecorationBlink(*)        |
|                |textDecorationLineThrough(*)    textDecorationNone(*)         |
|                |textDecorationOverline(*)       textDecorationUnderline(*)    |
|                |unicode-bidi                    vertical-align                |
|                |visibility                      word-spacing                  |
|                |z-index                         zoom                          |
+----------------+--------------------------------------------------------------+



"tbody" Event Handlers

+----------------+--------------------------------------------------------------+
| Event          |onActivate                      onBeforeActivate              |
| Handlers       |onBeforeCut                     onBeforeDeactivate            |
|                |onBeforePaste                   onBlur                        |
|                |onClick                         onContextMenu                 |
|                |onControlSelect                 onCut                         |
|                |onDblClick                      onDeactivate                  |
|                |onDrag                          onDragEnd                     |
|                |onDragEnter                     onDragLeave                   |
|                |onDragOver                      onDragStart                   |
|                |onDrop                          onFocus                       |
|                |onFocusIn                       onFocusOut                    |
|                |onHelp                          onKeyDown                     |
|                |onKeyPress                      onKeyUp                       |
|                |onLoseCapture                   onMouseDown                   |
|                |onMouseEnter                    onMouseLeave                  |
|                |onMouseMove                     onMouseOut                    |
|                |onMouseOver                     onMouseUp                     |
|                |onMouseWheel                    onMove                        |
|                |onMoveEnd                       onMoveStart                   |
|                |onPaste                         onPropertyChange              |
|                |onReadyStateChange              onResizeEnd                   |
|                |onResizeStart                   onSelectStart                 |
|                |onTimeError                                                   |
+----------------+--------------------------------------------------------------+



"tbody" Example

    
<html>
<head>
<title>tbody element example</title>
</head>
<body>
<table width="500" border="8" cellspacing="5" cellpadding="5" align="center">
<thead style="color:blue" align="center">
   <td>This cell is in the thead rows group.</td>
   <td>This cell is in the thead rows group.</td>
   <td>This cell is in the thead rows group.</td>
</thead>
   <tbody>
      <tr>
         <td>This cell is in the tbody rows group.</td>
         <td>This cell is in the tbody rows group.</td>
         <td>This cell is in the tbody rows group.</td>
      </tr>
   </tbody>
   <tfoot style="color:red" align="right">
      <td>This cell is in the tfoot rows group.</td>
      <td>This cell is in the tfoot rows group.</td>
      <td>This cell is in the tfoot rows group.</td>
   </tfoot>
</table>
</body>
</html>



"tbody" HTML Attributes

+----------------+--------------------------------------------------------------+
| HTML           |accesskey                       align                         |
| Attributes     |begin                           bgcolor                       |
|                |ch                              choff                         |
|                |class                           dir                           |
|                |end                             hidefocus                     |
|                |id                              lang                          |
|                |language                        style                         |
|                |syncmaster                      systemBitrate                 |
|                |systemCaptions                  systemLanguage                |
|                |systemOverdubOrSubtitle         tabindex                      |
|                |timecontainer                   title                         |
|                |unselectable                    valign                        |
+----------------+--------------------------------------------------------------+



"tbody" JavaScript Collections

+----------------+--------------------------------------------------------------+
| JavaScript     |all                             attributes                    |
| Collections    |behaviorUrns                    childNodes                    |
|                |children                        rows                          |
+----------------+--------------------------------------------------------------+



"tbody" JavaScript Methods

+----------------+--------------------------------------------------------------+
| JavaScript     |addBehavior                     appendChild                   |
| Methods        |applyElement                    attachEvent                   |
|                |blur                            clearAttributes               |
|                |click                           cloneNode                     |
|                |componentFromPoint              contains                      |
|                |deleteRow                       deleteTFoot                   |
|                |deleteTHead                     detachEvent                   |
|                |fireEvent                       focus                         |
|                |getAdjacentText                 getAttribute                  |
|                |getAttributeNode                getBoundingClientRect         |
|                |getClientRects                  getElementsByTagName          |
|                |getExpression                   hasChildNodes                 |
|                |insertAdjacentElement           insertBefore                  |
|                |insertRow                       mergeAttributes               |
|                |moveRow                         normalize                     |
|                |releaseCapture                  removeAttribute               |
|                |removeAttributeNode             removeBehavior                |
|                |removeChild                     removeExpression              |
|                |removeNode                      replaceAdjacentText           |
|                |replaceChild                    replaceNode                   |
|                |scrollIntoView                  setActive                     |
|                |setAttribute                    setAttributeNode              |
|                |setCapture                      setExpression                 |
|                |swapNode                                                      |
+----------------+--------------------------------------------------------------+



"tbody" JavaScript Objects

+----------------+--------------------------------------------------------------+
| JavaScript     |currentStyle                    runtimeStyle                  |
| Objects        |style                                                         |
+----------------+--------------------------------------------------------------+



"tbody" JavaScript Properties

+----------------+--------------------------------------------------------------+
| JavaScript     |accessKey                       align                         |
| Properties     |bgColor                         canHaveChildren               |
|                |canHaveHTML                     ch                            |
|                |chOff                           className                     |
|                |clientHeight                    clientLeft                    |
|                |clientTop                       clientWidth                   |
|                |cursor                          dir                           |
|                |end                             firstChild                    |
|                |hideFocus                       id                            |
|                |innerHTML                       innerText                     |
|                |isContentEditable               isDisabled                    |
|                |isMultiLine                     isTextEdit                    |
|                |lang                            language                      |
|                |lastChild                       nextSibling                   |
|                |nodeName                        nodeType                      |
|                |nodeValue                       offsetHeight                  |
|                |offsetLeft                      offsetParent                  |
|                |offsetTop                       offsetWidth                   |
|                |outerHTML                       outerText                     |
|                |ownerDocument                   parentElement                 |
|                |parentNode                      parentTextEdit                |
|                |previousSibling                 readyState                    |
|                |scopeName                       scrollHeight                  |
|                |scrollLeft                      scrollTop                     |
|                |scrollWidth                     sourceIndex                   |
|                |tabIndex                        tagName                       |
|                |tagUrn                          title                         |
|                |uniqueID                        vAlign                        |
+----------------+--------------------------------------------------------------+



"tbody" Microsoft Behaviors

+----------------+--------------------------------------------------------------+
| Microsoft      |clientCaps                      download                      |
| Behaviors      |homePage                        time                          |
|                |time2                                                         |
+----------------+--------------------------------------------------------------+



"tbody" Syntax and Note

Note:
The <table> element can be sectioned into three horizontal parts: 
<thead>, <tbody>, and <tfoot>. 
<thead> contains the rows at the head of the <table>. 
<tbody> contains the rows in the body of the <table>. 
<tfoot> contains the rows at the foot of the table.
<thead>, <tbody>, and <tfoot> elements indicates to the browser the break down 
of the sections 
<thead>, <tbody>, and <tfoot> elements allows you to apply different styles to them.
    
Syntax:
    
<tbody attributes events> . . . </tbody>