---
title: "js获取浏览器显示区域高度"
author: "name327"
date: "2013-07-03T15:37:56Z"
tags: []
categories: ["Web前端"]
slug: "js"
draft: false
lastmod: "2013-07-03T15:37:56Z"
id: 1897969
url: "https://name327.iteye.com/blog/1897969"
---

document.documentElement.clientHeight //获取显示区域高度

document.body.scrollTop//获取滚动条高度

document.getElementById("footid").offsetTop//获取元素到浏览器顶端的高度