菜鸟教程scrollHeight 属性是一个只读属性,它返回该元素的像素高度,高度包含内边距(padding),不包含外边距(margin)、边框(border),是一个整数,单位是像素 px。 scrollHeight 的值等于 HTML DOM Document 对象HTML DOM Document 对象 HTML DOM 节点 在 HTML DOM (Document Object 尝试一下由于此网站的设置,我们无法提供该页面的具体描述。仅显示来自 runoob.com 的更多内容请查看https://www.runoob.com/jsref/prop-element-scrollheight.html