HTML CSS Reference/HTML Tag Reference/caption
Содержание
- 1 "caption" CSS Attributes and JavaScript Style Properties
- 2 "caption" Event Handlers
- 3 "caption" Example
- 4 "caption" HTML Attributes
- 5 "caption" JavaScript Collections
- 6 "caption" JavaScript Methods
- 7 "caption" JavaScript Objects
- 8 "caption" JavaScript Properties
- 9 "caption" Microsoft Behaviors
- 10 "caption" Microsoft Filters
- 11 "caption" Syntax and Note
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 color |
| |cursor direction |
| |display filter |
| |font font-family |
| |font-size font-style |
| |font-variant font-weight |
| |hasLayout(*) height |
| |layout-flow layout-grid |
| |layout-grid-mode letter-spacing |
| |line-height margin |
| |margin-bottom margin-left |
| |margin-right margin-top |
| |padding padding-bottom |
| |padding-left padding-right |
| |padding-top page-break-after |
| |page-break-before pixelBottom(*) |
| |pixelHeight(*) pixelLeft(*) |
| |pixelRight(*) pixelTop(*) |
| |pixelWidth(*) posBottom(*) |
| |posHeight(*) posLeft(*) |
| |posRight(*) posTop(*) |
| |posWidth(*) text-autospace |
| |text-decoration text-overflow |
| |text-transform text-underline-position |
| |textDecorationBlink(*) textDecorationLineThrough(*) |
| |textDecorationNone(*) textDecorationOverline(*) |
| |textDecorationUnderline(*) unicode-bidi |
| |visibility width |
| |word-spacing writing-mode |
| |z-index zoom |
+----------------+--------------------------------------------------------------+
+----------------+--------------------------------------------------------------+
| Event |onActivate onAfterUpdate |
| Handlers |onBeforeActivate onBeforeCopy |
| |onBeforeCut onBeforeDeactivate |
| |onBeforePaste onBeforeUpdate |
| |onBlur onChange |
| |onClick onContextMenu |
| |onControlSelect onCopy |
| |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 |
+----------------+--------------------------------------------------------------+
<html><head><title>caption element example</title></head>
<body>
<center>
<table id="myTable"
width="200"
border="8"
cellspacing="5"
cellpadding="5"
align="center">
<caption id="myCaption" valign="bottom" style="color:red">
Table 1-1. This is the caption for this table.
</caption>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</table>
</center>
</body>
</html>
+----------------+--------------------------------------------------------------+
| HTML |accesskey align |
| Attributes |begin class |
| |dir disabled |
| |end hidefocus |
| |id lang |
| |language style |
| |syncmaster systemBitrate |
| |systemCaptions systemLanguage |
| |systemOverdubOrSubtitle tabindex |
| |timecontainer title |
| |unselectable valign |
+----------------+--------------------------------------------------------------+
+----------------+--------------------------------------------------------------+
| JavaScript |all attributes |
| Collections |behaviorUrns childNodes |
| |children |
+----------------+--------------------------------------------------------------+
+----------------+--------------------------------------------------------------+
| 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 |
+----------------+--------------------------------------------------------------+
+----------------+--------------------------------------------------------------+
| JavaScript |currentStyle runtimeStyle |
| Objects |style |
+----------------+--------------------------------------------------------------+
+----------------+--------------------------------------------------------------+
| JavaScript |accessKey align |
| Properties |canHaveChildren canHaveHTML |
| |className clientHeight |
| |clientLeft clientTop |
| |clientWidth cursor |
| |dir disabled |
| |end firstChild |
| |hasLayout hideFocus |
| |id innerHTML |
| |innerText isContentEditable |
| |isDisabled isMultiLine |
| |isTextEdit lang |
| |language lastChild |
| |nextSibling nodeName |
| |nodeType nodeValue |
| |offsetHeight offsetLeft |
| |offsetParent offsetTop |
| |offsetWidth outerHTML |
| |ownerDocument parentElement |
| |parentNode parentTextEdit |
| |previousSibling readyState |
| |scopeName scrollHeight |
| |scrollLeft scrollTop |
| |scrollWidth sourceIndex |
| |tabIndex tagName |
| |tagUrn title |
| |uniqueID vAlign |
+----------------+--------------------------------------------------------------+
+----------------+--------------------------------------------------------------+
| Microsoft |clientCaps download |
| Behaviors |homePage httpFolder |
| |saveFavorite saveHistory |
| |time time2 |
| |userData |
+----------------+--------------------------------------------------------------+
+----------------+--------------------------------------------------------------+
| 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 |
+----------------+--------------------------------------------------------------+
Note:
Placed immediately after an opening <table> tag and Add a short description
to a table.
Syntax:
<caption attributes events> . . . </caption>