Maison > Article > interface Web > IE7 Height:100% 问题_html/css_WEB-ITnose
<!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>
html
{
height:100%;
overflow:hidden;
}
用js控制,我每次都是js控制的高