HTML CSS Reference/HTML Tag Reference/col

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

"col" 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                     overflow                      |
|                |padding                         padding-bottom                |
|                |padding-left                    padding-right                 |
|                |padding-top                     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                          |
+----------------+--------------------------------------------------------------+



"col" Event Handlers

+----------------+--------------------------------------------------------------+
| Event          |onLayoutComplete                onReadyStateChange            |
+----------------+--------------------------------------------------------------+



"col" Example

    
<html>
<head>
<title>col element example</title>
</head>
<body>
   <table width="500" border="8" cellspacing="5" cellpadding="5" align="center">
      <col style="color:maroon">
      <col style="color:red">
      <tr><td>col 1: maroon</td>
          <td>col 2: red</td>
      <tr><td>col 1: maroon</td>
          <td>col 2: red</td></tr>
   </table>
</body>
</html>



"col" HTML Attributes

+----------------+--------------------------------------------------------------+
| HTML           |align                           bgcolor                       |
| Attributes     |ch                              choff                         |
|                |class                           dir                           |
|                |id                              lang                          |
|                |span                            style                         |
|                |title                           valign                        |
|                |width                                                         |
+----------------+--------------------------------------------------------------+



"col" JavaScript Collections

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



"col" JavaScript Methods

+----------------+--------------------------------------------------------------+
| JavaScript     |addBehavior                     appendChild                   |
| Methods        |applyElement                    attachEvent                   |
|                |clearAttributes                 cloneNode                     |
|                |componentFromPoint              contains                      |
|                |detachEvent                     dragDrop                      |
|                |fireEvent                       getAdjacentText               |
|                |getAttribute                    getAttributeNode              |
|                |getBoundingClientRect           getClientRects                |
|                |getElementsByTagName            getExpression                 |
|                |hasChildNodes                   insertAdjacentElement         |
|                |insertBefore                    mergeAttributes               |
|                |normalize                       removeAttribute               |
|                |removeAttributeNode             removeBehavior                |
|                |removeChild                     removeExpression              |
|                |removeNode                      replaceAdjacentText           |
|                |replaceChild                    replaceNode                   |
|                |scrollIntoView                  setAttribute                  |
|                |setAttributeNode                setExpression                 |
|                |swapNode                                                      |
+----------------+--------------------------------------------------------------+



"col" JavaScript Objects

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



"col" JavaScript Properties

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



"col" Microsoft Behaviors

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



"col" Syntax and Note

Note:
Specifies the properties of a column in a <table>.
   
Syntax:
    
<col attributes events>