社区
Web 开发
帖子详情
document.body.scrollHeight 这是什么值?
holsten32
2010-04-18 06:58:04
我在一段js代码中看到document.body.scrollHeight这么个值.但是始终没找到html中有哪个标签中有scrollHeight这么个值!是不是html中的frame高度默认属性就是这个scrollHeight还是有什么其他的意思?
...全文
2583
5
打赏
收藏
document.body.scrollHeight 这是什么值?
我在一段js代码中看到document.body.scrollHeight这么个值.但是始终没找到html中有哪个标签中有scrollHeight这么个值!是不是html中的frame高度默认属性就是这个scrollHeight还是有什么其他的意思?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
justlearn
2010-04-19
打赏
举报
回复
[Quote=引用 4 楼 huosidun 的回复:]
parent呢?parent.document.... 这个parent是js里的默认的一个对象么?啥意思
[/Quote]
parent:
该变量指的是包含当前分割窗口的父窗口。如果在一个窗口内有分割窗口,而在其中一个分割窗口中又包含着分割窗口,则第2层的分割窗口可以用parent变量引用包含它的父分割窗口。
opener:
指用window.open等方式创建的新窗口对应的原窗口。
holsten32
2010-04-18
打赏
举报
回复
parent呢?parent.document.... 这个parent是js里的默认的一个对象么?啥意思
justlearn
2010-04-18
打赏
举报
回复
没有DHTML手册吗,去下个吧,做页面时候挺有用的
justlearn
2010-04-18
打赏
举报
回复
属于html中body属性
SCROLL scroll 设置或获取滚动是否关闭。
scrollHeight 获取对象的滚动高度。
scrollLeft 设置或获取位于对象左边界和窗口中目前可见内容的最左端之间的距离。
scrollTop 设置或获取位于对象最顶端和窗口中可见内容的最顶端之间的距离。
scrollWidth 获取对象的滚动宽度。
leon_xiao
2010-04-18
打赏
举报
回复
scroolheight 是一个容器内的滚动内容(不是可视内容)的高度。 iframe.height = its scrollheight是为了把iframe里的内容全部显示出来。
关于Chrome谷歌浏览器版本更新对
document
.
body
.
scroll
Height
等 兼容日常小记
1、
document
.
document
Element.
scroll
Top和
document
.
body
.
scroll
Top始终有一个为0,所以可以用这两个的和来求
scroll
Top。分割线---------------------------------------------------
document
.
document
Element.
scroll
Height
——浏览器可视部分高度。
document
.
document
Element.
scroll
Height
——浏览器可视部分高度。
document
.
body
.
scroll
Height
<SCRIPT LANGUAGE="JavaScript"> alert('------直接------->'+
document
.
body
.
scroll
Height
); var a =
document
.
body
.
scroll
Height
; alert("---单独---->"+a); </script> 上面代码放到网页中: --...
document
.
body
和
document
.
document
Element的区别
document
.
body
和
document
.
document
Element比较:
document
.
body
是DOM中
Document
对象里的
body
节点,
document
.
document
Element是文档对象根节点(html)的引用。
document
.
body
.
scroll
Height
和
document
.
document
Element.
scroll
Height
的区别:
iframe自适应高度
document
.
body
.
scroll
Height
取
值
不对
springmv 切换iframe 时发现直接修改iframe src 或者使用 location.href = "“时不起作用 之后才有form 标段提交 在control中返回新网页的地址 才完成了网页切换 之后iframe自适应高度有出现了问题 子页面中使用
document
.
body
.
scroll
Height
获取的高度
值
不对 在iframe引用的前一个页面的高度比ifra...
document
.
document
Element和
document
.
body
的
scroll
Height
/
scroll
Top/client
Height
以及判断滚动条是否已拉到页面最底部
本文主要讲述了IE/FF/Chrome下
document
.
document
Element和
document
.
body
的
scroll
Height
/
scroll
Top/client
Height
以及判断滚动条是否已拉到页面最底部。
Web 开发
81,115
社区成员
341,728
社区内容
发帖
与我相关
我的任务
Web 开发
Java Web 开发
复制链接
扫一扫
分享
社区描述
Java Web 开发
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章