HTML CSS Reference/HTML Tag Reference/tr
Содержание
"tr" 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 clip |
| |color cursor |
| |direction display |
| |font font-family |
| |font-size font-style |
| |font-variant font-weight |
| |height layout-grid |
| |layout-grid-char layout-grid-line |
| |layout-grid-mode layout-grid-type |
| |letter-spacing line-break |
| |line-height min-height |
| |page-break-after page-break-before |
| |pixelBottom(*) pixelHeight(*) |
| |pixelLeft(*) pixelRight(*) |
| |pixelTop(*) pixelWidth(*) |
| |posBottom(*) posHeight(*) |
| |position posLeft(*) |
| |posRight(*) posTop(*) |
| |posWidth(*) text-align |
| |text-autospace text-decoration |
| |text-indent text-justify |
| |text-transform text-underline-position |
| |textDecorationBlink(*) textDecorationLineThrough(*) |
| |textDecorationNone(*) textDecorationOverline(*) |
| |textDecorationUnderline(*) unicode-bidi |
| |vertical-align visibility |
| |word-break word-spacing |
| |z-index zoom |
+----------------+--------------------------------------------------------------+
"tr" Event Handlers
+----------------+--------------------------------------------------------------+
| Event |onActivate onAfterUpdate |
| Handlers |onBeforeActivate onBeforeCopy |
| |onBeforeCut onBeforeDeactivate |
| |onBeforeEditFocus onBeforePaste |
| |onBeforeUpdate onBluronClick |
| |onContextMenu onControlSelect |
| |onCopy onCut |
| |onDblClick onDeactivate |
| |onDrag onDragEnd |
| |onDragEnter onDragLeave |
| |onDragOver onDragStart |
| |onDrop onFilterChange |
| |onFocus onFocusIn |
| |onFocusOut onHelp |
| |onKeyDown onKeyPress |
| |onKeyUp onLoseCapture |
| |onMouseDown onMouseEnter |
| |onMouseLeave onMouseMove |
| |onMouseOut onMouseOver |
| |onMouseUp onMouseWheel |
| |onMove onMoveEnd |
| |onMoveStart onPaste |
| |onPropertyChange onReadyStateChange |
| |onResize onResizeEnd |
| |onResizeStart onSelectStart |
| |onTimeError |
+----------------+--------------------------------------------------------------+
"tr" Example
<html>
<head>
<title>tr element example</title>
</head>
<body>
<table width="200" border="8" cellspacing="5" cellpadding="5" align="center">
<tr align="center">
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr align="center">
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</table>
</body>
</html>
"tr" HTML Attributes
+----------------+--------------------------------------------------------------+
| HTML |accesskey align |
| Attributes |begin bgcolor |
| |bordercolor ch |
| |choff class |
| |dir end |
| |height hidefocus |
| |id lang |
| |language style |
| |syncmaster systemBitrate |
| |systemCaptions systemLanguage |
| |systemOverdubOrSubtitle tabindex |
| |timecontainer title |
| |valign width |
+----------------+--------------------------------------------------------------+
"tr" JavaScript Collections
+----------------+--------------------------------------------------------------+
| JavaScript |all attributes |
| Collections |behaviorUrns cells |
| |childNodes children |
+----------------+--------------------------------------------------------------+
"tr" JavaScript Methods
+----------------+--------------------------------------------------------------+
| JavaScript |addBehavior appendChild |
| Methods |applyElement attachEvent |
| |blur clearAttributes |
| |click cloneNode |
| |componentFromPoint contains |
| |deleteCell detachEvent |
| |dragDrop fireEvent |
| |focus getAdjacentText |
| |getAttribute getAttributeNode |
| |getBoundingClientRect getClientRects |
| |getElementsByTagName getExpression |
| |hasChildNodes insertAdjacentElement |
| |insertBefore insertCell |
| |mergeAttributes normalize |
| |releaseCapture removeAttribute |
| |removeAttributeNode removeBehavior |
| |removeChild removeExpression |
| |removeNode replaceAdjacentText |
| |replaceChild replaceNode |
| |scrollIntoView setActive |
| |setAttribute setAttributeNode |
| |setCapture setExpression |
| |swapNode |
+----------------+--------------------------------------------------------------+
"tr" JavaScript Objects
+----------------+--------------------------------------------------------------+
| JavaScript |currentStyle runtimeStyle |
| Objects |style |
+----------------+--------------------------------------------------------------+
"tr" JavaScript Properties
+----------------+--------------------------------------------------------------+
| JavaScript |accessKey align |
| Properties |bgColor borderColor |
| |borderColorDark borderColorLight |
| |canHaveChildren canHaveHTML |
| |ch chOff |
| |className clientHeight |
| |clientLeft clientTop |
| |clientWidth cursor |
| |dir disabled |
| |end firstChild |
| |height 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 rowIndex |
| |scopeName scrollHeight |
| |scrollLeft scrollTop |
| |scrollWidth sectionRowIndex |
| |sourceIndex tabIndex |
| |tagName tagUrn |
| |title uniqueID |
| |vAlign width |
+----------------+--------------------------------------------------------------+
"tr" Microsoft Behaviors
+----------------+--------------------------------------------------------------+
| Microsoft |clientCaps download |
| Behaviors |homePage time |
| |time2 |
+----------------+--------------------------------------------------------------+
"tr" Syntax and Note
Note:
This element creates a single row inside a <table> element.
The cells in each row are created by the <td> element.
Syntax:
<tr attributes events> . . . </tr>