---
title: "怎样让一个div高度自适应浏览器"
author: "submaze"
date: "2013-12-18T09:33:46Z"
tags: []
categories: ["Web前端"]
slug: "div"
draft: false
lastmod: "2013-12-18T09:33:46Z"
id: 1991181
url: "https://submaze.iteye.com/blog/1991181"
---

网页中需要同时设置如下代码

```html

html,body{height:100%;overflow:hidden;}

```