---
title: "兼容ie,firefox"
author: "leiliang"
date: "2008-10-18T15:41:49Z"
tags: []
slug: "ie-firefox"
draft: false
lastmod: "2008-10-18T15:41:49Z"
id: 254706
url: "https://leiliang.iteye.com/blog/254706"
---

1.页面100%高度问题
  1).在没加DOCTYPE, body内元素设置height 100% 可以实现撑满页面的效果

  2).在加了DOCTYPE,ie设置body起就可以,firefox需要从html元素开始设置起