window.document.body 代表网页的正文部分。
属性/方法 | 意义 | 示例 |
---|---|---|
accessKey | 快捷键,常用于 LABEL 标志 | |
aLink | ||
all | 所有页面对象集合 | |
attributes | ||
background | ||
behaviorUrns | ||
bgColor | ||
bgProperties | ||
bottomMargin | ||
canHaveChildren | ||
canHaveHTML | ||
childNodes | ||
children | 子对象集合 | |
className | 类名,标志中用 class=名称 指定 | |
clientHeight | 客户区的高度(不含滚动条、边距) | |
clientLeft | 客户区左边距 | |
clientTop | 客户区顶边距 | |
clientWidth | 窗口内显示对象区域的宽度(不含滚动条、边距) | |
contentEditable | ||
currentStyle | ||
dir | ||
disabled | ||
document | ||
filters | ||
firstChild | ||
hideFocus | ||
id | ||
innerHTML | ||
innerText | ||
isContentEditable | ||
isDisabled | ||
isMultiLine | ||
isTextEdit | ||
lang | ||
language | ||
lastChild | ||
leftMargin | ||
link | ||
nextSibling | ||
nodeName | ||
nodeType | ||
nodeValue | ||
noWrap | ||
offsetHeight | 显示窗口高度 / innerHeight(NS) | |
offsetLeft | 窗口左坐标 0 | |
offsetParent | ||
offsetTop | 窗口顶坐标 0 | |
offsetWidth | 显示窗口宽度 / innerWIDTH(NS) | |
onactivate | ||
onafterprint | ||
onafterupdate | ||
onbeforecopy | ||
onbeforecut | ||
onbeforedeactivate | ||
onbeforeeditfocus | ||
onbeforepaste | ||
onbeforeprint | ||
onbeforeunload | ||
onbeforeupdate | ||
onblur | ||
oncellchange | ||
onclick | ||
oncontextmenu | ||
oncontrolselect | ||
oncopy | ||
oncut | ||
ondataavailable | ||
ondatasetchanged | ||
ondatasetcomplete | ||
ondblclick | ||
ondeactivate | ||
ondrag | ||
ondragend | ||
ondragenter | ||
ondragleave | ||
ondragover | ||
ondragstart | ||
ondrop | ||
onerrorupdate | ||
onfilterchange | ||
onfocus | ||
onhelp | ||
onkeydown | ||
onkeypress | ||
onkeyup | ||
onlayoutcomplete | ||
onload | ||
onlosecapture | ||
onmousedown | ||
onmouseenter | ||
onmouseleave | ||
onmousemove | ||
onmouseout | ||
onmouseover | ||
onmouseup | ||
onmove | ||
onmoveend | ||
onmovestart | ||
onpage | ||
onpaste | ||
onpropertychange | ||
onreadystatechange | ||
onresize | ||
onresizeend | ||
onresizestart | ||
onrowenter | ||
onrowexit | ||
onrowsdelete | ||
onrowsinserted | ||
onscroll | ||
onselect | ||
onselectstart | ||
onunload | ||
outerHTML | ||
outerText | ||
parentElement | ||
parentNode | ||
parentTextEdit | ||
previousSibling | ||
readyState | ||
recordNumber | ||
rightMargin | ||
runtimeStyle | ||
scopeName | ||
scroll | 滚动条 | no 不显示 |
scrollHeight | 滚动条可滚高度>=clientHeight | |
scrollLeft | 页面左移出的距离 | |
scrollTop | 页面上滚出的距离 | |
scrollWidth | 滚动条可滚宽度>=clientWidth | |
sourceIndex | ||
style | 样式 | |
tabIndex | ||
tagName | HTML 标记名称,大写 | |
tagUrn | ||
text | 包含文本,不含 HTML 标志 | |
title | 标题文本 | |
topMargin | 上补丁 | |
vLink |