HTML CSS Reference/HTML Tag Reference/td
Содержание
- 1 "td" CSS Attributes and JavaScript Style Properties
- 2 "td" Event Handlers
- 3 "td" Example
- 4 "td" HTML Attributes
- 5 "td" JavaScript Collections
- 6 "td" JavaScript Methods
- 7 "td" JavaScript Objects
- 8 "td" JavaScript Properties
- 9 "td" Microsoft Behaviors
- 10 "td" Microsoft Filters
- 11 "td" Syntax and Note
"td" 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 |border border-bottom |
| |border-bottom-color border-bottom-style |
| |border-bottom-width border-color |
| |border-left border-left-color |
| |border-left-style border-left-width |
| |border-right border-right-color |
| |border-right-style border-right-width |
| |border-style border-top |
| |border-top-color border-top-style |
| |border-top-width border-width |
| |clear clip |
| |color cursor |
| |direction display |
| |filter font |
| |font-family font-size |
| |font-style font-variant |
| |font-weight hasLayout(*) |
| |height layout-flow |
| |layout-grid layout-grid-char |
| |layout-grid-line layout-grid-mode |
| |layout-grid-type letter-spacing |
| |line-break line-height |
| |margin margin-bottom |
| |margin-left margin-right |
| |margin-top min-height |
| |padding padding-bottom |
| |padding-left padding-right |
| |padding-top 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 |
| |word-wrap writing-mode |
| |z-index zoom |
+----------------+--------------------------------------------------------------+
"td" Event Handlers
+----------------+--------------------------------------------------------------+
| Event |onActivate onAfterUpdate |
| Handlers |onBeforeActivate onBeforeCopy |
| |onBeforeCut onBeforeDeactivate |
| |onBeforeEditFocus onBeforePaste |
| |onBeforeUpdate onBlur |
| |onClick 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 |
| |onScroll onSelectStart |
| |onTimeError |
+----------------+--------------------------------------------------------------+
"td" Example
<html>
<head>
<title>td 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>
"td" HTML Attributes
+----------------+--------------------------------------------------------------+
| HTML |abbr accesskey |
| Attributes |align axis |
| |background begin |
| |bgcolor bordercolor |
| |ch choff |
| |class colspan |
| |dir end |
| |headers height |
| |hidefocus id |
| |lang language |
| |nowrap rowspan |
| |scope style |
| |syncmaster systemBitrate |
| |systemCaptions systemLanguage |
| |systemOverdubOrSubtitle tabindex |
| |timecontainer title |
| |unselectable valign |
| |width |
+----------------+--------------------------------------------------------------+
"td" JavaScript Collections
+----------------+--------------------------------------------------------------+
| JavaScript |all attributes |
| Collections |behaviorUrns childNodes |
| |children filters |
+----------------+--------------------------------------------------------------+
"td" JavaScript Methods
+----------------+--------------------------------------------------------------+
| JavaScript |addBehavior appendChild |
| Methods |applyElement attachEvent |
| |blur clearAttributes |
| |click cloneNode |
| |componentFromPoint contains |
| |detachEvent dragDrop |
| |fireEvent focus |
| |getAdjacentText getAttribute |
| |getAttributeNode getBoundingClientRect |
| |getClientRects getElementsByTagName |
| |getExpression hasChildNodes |
| |insertAdjacentElement insertAdjacentHTML |
| |insertAdjacentText insertBefore |
| |mergeAttributes normalize |
| |releaseCapture removeAttribute |
| |removeAttributeNode removeBehavior |
| |removeChild removeExpression |
| |removeNode replaceAdjacentText |
| |replaceChild replaceNode |
| |scrollIntoView setActive |
| |setAttribute setAttributeNode |
| |setCapture setExpression |
| |swapNode |
+----------------+--------------------------------------------------------------+
"td" JavaScript Objects
+----------------+--------------------------------------------------------------+
| JavaScript |currentStyle runtimeStyle |
| Objects |style |
+----------------+--------------------------------------------------------------+
"td" JavaScript Properties
+----------------+--------------------------------------------------------------+
| JavaScript |abbr accessKey |
| Properties |align axis |
| |background bgColor |
| |border borderColor |
| |borderColorDark borderColorLight |
| |canHaveChildren canHaveHTML |
| |cellIndex ch |
| |chOff className |
| |clientHeight clientLeft |
| |clientTop clientWidth |
| |colSpan cursor |
| |dir disabled |
| |end firstChild |
| |hasLayout headers |
| |height hideFocus |
| |id innerHTML |
| |innerText isContentEditable |
| |isDisabled isMultiLine |
| |isTextEdit lang |
| |language lastChild |
| |nextSibling nodeName |
| |nodeType nodeValue |
| |noWrap offsetHeight |
| |offsetLeft offsetParent |
| |offsetTop offsetWidth |
| |outerHTML outerText |
| |ownerDocument parentElement |
| |parentNode parentTextEdit |
| |previousSibling readyState |
| |rowSpan scope |
| |scopeName scrollHeight |
| |scrollLeft scrollTop |
| |scrollWidth sourceIndex |
| |tabIndex tagName |
| |tagUrn title |
| |uniqueID vAlign |
| |width |
+----------------+--------------------------------------------------------------+
"td" Microsoft Behaviors
+----------------+--------------------------------------------------------------+
| Microsoft |clientCaps download |
| Behaviors |homePage time |
| |time2 |
+----------------+--------------------------------------------------------------+
"td" Microsoft Filters
+----------------+--------------------------------------------------------------+
| Microsoft |Alpha Barn |
| Filters |BasicImage BlendTrans |
| |Blinds Blur |
| |CheckerBoard Chroma |
| |Compositor DropShadow |
| |Emboss Engrave |
| |Fade FlipH |
| |FlipV Glow |
| |GradientWipe Gray |
| |ICMFilter Inset |
| |Invert Iris |
| |Light MaskFilter |
| |Matrix MotionBlur |
| |Pixelate RadialWipe |
| |RandomBars RandomDissolve |
| |RevealTrans Shadow |
| |Slide Spiral |
| |Stretch Strips |
| |Wave Wheel |
| |Xray Zigzag |
+----------------+--------------------------------------------------------------+
"td" Syntax and Note
Note:
This element creates a cell in a table.
This element works with the <table> and <tr> elements.
Syntax:
<td attributes events> . . . </td>