HTML CSS Reference/HTML Tag Reference/hr
Содержание
- 1 "hr" CSS Attributes and JavaScript Style Properties
- 2 "hr" Event Handlers
- 3 "hr" Example
- 4 "hr" HTML Attributes
- 5 "hr" JavaScript Collections
- 6 "hr" JavaScript Methods
- 7 "hr" JavaScript Objects
- 8 "hr" JavaScript Properties
- 9 "hr" Microsoft Behaviors
- 10 "hr" Microsoft Filters
- 11 "hr" Syntax and Note
"hr" CSS Attributes and JavaScript Style Properties
Names noted with an asterisk (*) are JavaScript properties only.
+----------------+--------------------------------------------------------------+
| CSS |background-position-x background-position-y |
| Attributes |behavior border-bottom-color |
| and |border-bottom-style border-bottom-width |
| JavaScript |border-color border-left-color |
| Style |border-left-style border-left-width |
| Properties |border-right-color border-right-style |
| |border-right-width border-style |
| |border-top-color border-top-style |
| |border- top-width border-width |
| |bottom clear |
| |clip cursor |
| |display float |
| |height layout-flow |
| |layout-grid layout-grid-char |
| |layout-grid-line layout-grid-mode |
| |layout-grid-type left |
| |line-break margin |
| |margin-bottom margin-left |
| |margin- right margin-top |
| |padding padding-bottom |
| |padding-left padding-right |
| |padding- top pixelBottom(*) |
| |pixelHeight(*) pixelLeft(*) |
| |pixelRight(*) pixelTop(*) |
| |pixelWidth(*) posBottom(*) |
| |posHeight(*) position |
| |posLeft(*) posRight(*) |
| |posTop(*) posWidth(*) |
| |right styleFloat(*) |
| |text-align text-align-last |
| |text-autospace text-indent |
| |text-justify text-kashida-space |
| |text-underline- position top |
| |visibility white-space |
| |width word-break |
| |word-wrap writing- mode |
| |zoom |
+----------------+--------------------------------------------------------------+
"hr" Event Handlers
+----------------+--------------------------------------------------------------+
| Event |onActivate onBeforeActivate |
| Handlers |onBeforeCut onBeforeDeactivate |
| |onBeforePaste onBlur |
| |onClick onContextMenu |
| |onControlSelect onCopy |
| |onCut onDblClick |
| |onDeactivate onDrag |
| |onDragEnd onDragEnter |
| |onDragLeave onDragOver |
| |onDragStart onDrop |
| |onFocus onFocusIn |
| |onFocusOut onHelp |
| |onKeyDown onKeyPress |
| |onKeyUp onLayoutComplete |
| |onLoseCapture onMouseDown |
| |onMouseEnter onMouseLeave |
| |onMouseMove onMouseOut |
| |onMouseOver onMouseUp |
| |onMouseWheel onMove |
| |onMoveEnd onMoveStart |
| |onPaste onPropertyChange |
| |onReadyStateChange onResize |
| |onResizeEnd onResizeStart |
| |onSelectStart onTimeError |
+----------------+--------------------------------------------------------------+
"hr" Example
<html>
<head>
<title>hr element example</title>
</head>
<body>Text
<hr id="firstRule" noshade color="blue">
Text
<hr id="firstRule" color="blue">
Text
<hr>
</body>
</html>
"hr" HTML Attributes
+----------------+--------------------------------------------------------------+
| HTML |accesskey align |
| Attributes |begin class |
| |color dir |
| |end hidefocus |
| |id lang |
| |language noshade |
| |size style |
| |syncmaster systemBitrate |
| |systemCaptions systemLanguage |
| |systemOverdubOrSubtitle tabindex |
| |timecontainer title |
| |unselectable width |
+----------------+--------------------------------------------------------------+
"hr" JavaScript Collections
+----------------+--------------------------------------------------------------+
| JavaScript |all attributes |
| Collections |behaviorUrns childNodes |
| |children |
+----------------+--------------------------------------------------------------+
"hr" JavaScript Methods
+----------------+--------------------------------------------------------------+
| JavaScript |addBehavior appendChild |
| Methods |applyElement attachEvent |
| |blur clearAttributes |
| |click cloneNode |
| |componentFromPoint contains |
| |detachEvent dragDrop |
| |fireEvent focus |
| |getAdjacentText getAttribute |
| |getAttributeNode getElementsByTagName |
| |getExpression hasChildNodes |
| |insertAdjacentElement insertAdjacentHTML |
| |insertAdjacentText insertBefore |
| |mergeAttributes normalize |
| |releaseCapture removeAttribute |
| |removeAttributeNode removeBehavior |
| |removeChild removeExpression |
| |replaceAdjacentText replaceChild |
| |scrollIntoView setActive |
| |setAttribute setAttributeNode |
| |setCapture setExpression |
| |swapNode |
+----------------+--------------------------------------------------------------+
"hr" JavaScript Objects
+----------------+--------------------------------------------------------------+
| JavaScript |currentStyle runtimeStyle |
| Objects |style |
+----------------+--------------------------------------------------------------+
"hr" JavaScript Properties
+----------------+--------------------------------------------------------------+
| JavaScript |accessKey align |
| Properties |canHaveHTML className |
| |clientHeight clientWidth |
| |color cursor |
| |dir disabled |
| |end firstChild |
| |hideFocus id |
| |innerHTML isContentEditable |
| |isDisabled isMultiLine |
| |isTextEdit lang |
| |language lastChild |
| |nextSibling nodeName |
| |nodeType nodeValue |
| |noShade offsetHeight |
| |offsetLeft offsetParent |
| |offsetTop offsetWidth |
| |outerHTML outerText |
| |ownerDocument parentElement |
| |parentNode parentTextEdit |
| |previousSibling readyState |
| |scopeName scrollHeight |
| |scrollLeft scrollTop |
| |scrollWidth size |
| |sourceIndex tabIndex |
| |tagName tagUrn |
| |title uniqueID |
| |width |
+----------------+--------------------------------------------------------------+
"hr" Microsoft Behaviors
+----------------+--------------------------------------------------------------+
| Microsoft |clientCaps download |
| Behaviors |homePage httpFolder |
| |saveFavorite saveHistory |
| |saveSnapshot time |
| |time2 userData |
+----------------+--------------------------------------------------------------+
"hr" Microsoft Filters
+----------------+--------------------------------------------------------------+
| Microsoft |FlipH FlipV |
+----------------+--------------------------------------------------------------+
"hr" Syntax and Note
Note:
This element creates a horizontal rule.
The default setting is a shaded the line with a 3D appearance.
Syntax:
<hr attributes events>