style对象 | |
posLeft posTop posWidth posHeight | 返回位置坐标的数值,不论单位 |
pixelLeft pixelTop pixelWidth pixelHeight | 返回以像素为单位的位置坐标的数值,非像素单位转换为像素单位显示 |
Left Top Width height | 返回带单位的位置坐标字符串 |
body(HTML) documentElement(XHTML)对象 | |
scrollLeft scrollTop | 用于IE4及其以上版本中,对应于NN6中window对象的scrollX、scrollY属性 |
scrollWidth scrollHeight | 用于IE4及其以上版本中,对应于NN中document对象的width、height属性 |
clientLeft clientTop |
|
clientWidth clientHeight |
|
document对象 | |
Width height | 用于NN4及其以上版本中,见《JavaScript 动态经典实例教程》一书P153 |
window对象 | |
scrollX scrollY | 用于NN6中,见《JavaScript 动态经典实例教程》一书P153 |
screenX screenY | 用于NN6中,返回窗口左角顶点与屏幕左角顶点的水平和垂直坐标值 |
screenLeft screenTop | 用于IE5及其以上版本中, 同上 |
innerWidth innerHeight | 用于NN4及其以上版本中,返回内部窗口(文档区域)的宽高,单位为像素 |
outerWidth outerHeight | 用于NN4及其以上版本中,返回外部窗口(文档区域)的宽高,单位为像素 |
所有对象 | |
offsetLeft offsetTop | 返回当前元素相对于父元素的左、右偏移量 |
以前整理的,现在从新浪博客里搬过来,重新排了下格式,备忘。