Home > Web Front-end > HTML Tutorial > IE7 Height:100% 问题_html/css_WEB-ITnose

IE7 Height:100% 问题_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:35:40
Original
1032 people have browsed it

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head>    <style type="text/css">        *        {            padding:0px;            margin: 0px;        }        html        {            height:100%;            }        body        {           border:0px;           background : #aa8;                   }    </style></head><body>    <div>       dddd    </div>  </body></html>
Copy after login

在IE7下设置了html的Height:100%会出现滚动条,怎样才能去掉滚动条并保持html的高度是100%?


回复讨论(解决方案)

 html
        {
            height:100%;
            overflow:hidden;
            }

用js控制,我每次都是js控制的高

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template