HTML CSS Reference/HTML Tag Reference/body

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

"body" CSS Attributes and JavaScript Style Properties

   <source lang="html4strict">

Names noted with an asterisk (*) are JavaScript properties only. +----------------+--------------------------------------------------------------+ | CSS |!important  :first-letter | | Attributes |:first-line accelerator | | and |background background-attachment | | JavaScript |background-color background-image | | Style |background-position background-position-x | | Properties |background-position-y background-repeat | | |behavior 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 color | | |cursor direction | | |display filter | | |font font-family | | |font-size font-style | | |font-variant font-weight | | |hasLayout(*) 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 | | |overflow overflow-x | | |overflow-y 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(*) | | |scrollbar-3dlight-color scrollbar-arrow-color | | |scrollbar-base-color scrollbardarkshadow-color | | |scrollbar-face-color scrollbar-highlight-color | | |scrollbar- shadow-color scrollbar-track-color | | |text-align text-align-last | | |text-autospace text-decoration | | |text-indent text-justify | | |text-kashida-space text-overflow | | |text-transform text-underline-position | | |textDecorationBlink(*) textDecorationLineThrough(*) | | |textDecorationNone(*) textDecorationOverline(*) | | |textDecorationUnderline(*) unicode-bidi | | |visibility white-space | | |word-break word-spacing | | |word-wrap zoom | +----------------+--------------------------------------------------------------+

     </source>
   
  


"body" Event Handlers

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Event |onActivate onAfterPrint | | Handlers |onBeforeActivate onBeforeCut | | |onBeforeDeactivate onBeforeEditFocus | | |onBeforePaste onBeforePrint | | |onBeforeUnload onClick | | |onContextMenu onControlSelect | | |onCut onDblClick | | |onDeactivate onDrag | | |onDragEnd onDragEnter | | |onDragLeave onDragOver | | |onDragStart onDrop | | |onFilterChange onFocus | | |onFocusIn onFocusOut | | |onHelp onKeyDown | | |onKeyPress onKeyUp | | |onLoad onLoseCapture | | |onMouseDown onMouseEnter | | |onMouseLeave onMouseMove | | |onMouseOut onMouseOver | | |onMouseUp onMouseWheel | | |onMove onMoveEnd | | |onMoveStart onPaste | | |onPropertyChange onReadyStateChange | | |onResizeEnd onResizeStart | | |onScroll onSelect | | |onSelectStart onUnload | +----------------+--------------------------------------------------------------+

     </source>
   
  


"body" Example

   <source lang="html4strict">
   
 

<html> <head> <title>body element example</title> </head>

 <body text="#0000ff" 
       bottommargin="150"
       topmargin="150">
       

Text is blue.

 </body>

</html>


     </source>
   
  


"body" HTML Attributes

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | HTML |accesskey alink | | Attributes |background bgcolor | | |bgproperties bottommargin | | |class contenteditable | | |dir disabled | | |hidefocus id | | |lang language | | |leftmargin link | | |nowrap rightmargin | | |scroll style | | |t:timestartrule tabindex | | |text title | | |topmargin unselectable | | |vlink | +----------------+--------------------------------------------------------------+

     </source>
   
  


"body" JavaScript Collections

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | JavaScript |all attributes | | Collections |behaviorUrns childNodes | | |children filters | | |timeAll timeChildren | +----------------+--------------------------------------------------------------+

     </source>
   
  


"body" JavaScript Methods

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | JavaScript |addBehavior appendChild | | Methods |applyElement attachEvent | | |blur clearAttributes | | |click cloneNode | | |componentFromPoint contains | | |createControlRange createTextRange | | |detachEvent doScroll | | |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 setActive | | |setAttribute setAttributeNode | | |setCapture setExpression | | |swapNode | +----------------+--------------------------------------------------------------+

     </source>
   
  


"body" JavaScript Properties

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | JavaScript |accessKey aLink | | Properties |background bgColor | | |bgProperties blockDirection | | |bottomMargin canHaveChildren | | |canHaveHTML className | | |clientHeight clientLeft | | |clientTop clientWidth | | |contentEditable cursor | | |dir disabled | | |firstChild hasLayout | | |hideFocus id | | |innerHTML innerText | | |isContentEditable isDisabled | | |isMultiLine isTextEdit | | |lang language | | |lastChild leftMargin | | |link nextSibling | | |nodeName nodeType | | |nodeValue noWrap | | |offsetHeight offsetLeft | | |offsetParent offsetTop | | |offsetWidth ownerDocument | | |parentElement parentNode | | |parentTextEdit previousSibling | | |readyState rightMargin | | |scopeName scroll | | |scrollHeight scrollLeft | | |scrollTop scrollWidth | | |sourceIndex tabIndex | | |tagName tagUrn | | |text title | | |topMargin uniqueID | | |vLink | +----------------+--------------------------------------------------------------+

     </source>
   
  


"body" Microsoft Behaviors

   <source lang="html4strict">

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

     </source>
   
  


"body" Microsoft Filters

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Microsoft |Alpha Barn | | Filters |BasicImage BlendTrans | | |Blinds Blur | | |CheckerBoard Chroma | | |Compositor 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 | +----------------+--------------------------------------------------------------+

     </source>
   
  


"body" Syntax and Note

   <source lang="html4strict">

Note: Define where to display all text, graphics, and other web page content.

Syntax:

<body attributes events> . . . </body>


     </source>