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

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

WBOY
WBOYOriginal
2016-06-21 09:35:401018browse

<!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>

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


回复讨论(解决方案)

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

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

Statement:
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