摘要: 网页可见区域宽: document.body.clientWidth;网页可见区域高: document.body.clientHeight;网页可见区域宽: document.body.offsetWidth (包括边线的宽);网页可见区域高: document.body.offsetHeight (包括边线的宽);网页正文全文宽: document.body.scrollWidth;网页... 阅读全文
posted @ 2008-06-23 09:26 s80895304 阅读(301) 评论(0) 推荐(0) 编辑
摘要: document方法: getElementById(id) 返回指定结点的引用 getElementsByTagName(name) 返回文档中所有匹配的元素的集合 createElement(name) 创建指定类型的新结点 createTextNode(text) 创建一个纯文本结点 element方法: getAttribute(id) 返回指定属性的值 setAttribute(id,v... 阅读全文
posted @ 2008-06-23 08:35 s80895304 阅读(1295) 评论(0) 推荐(0) 编辑