IE7 Height:100% 问题_html/css_WEB-ITnose
Jun 21, 2016 am 09:35 AM<!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控制的高

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Difficulty in updating caching of official account web pages: How to avoid the old cache affecting the user experience after version update?

How do I use HTML5 form validation attributes to validate user input?

What is the purpose of the <iframe> tag? What are the security considerations when using it?

How to efficiently add stroke effects to PNG images on web pages?

What is the purpose of the <meter> element?

What is the purpose of the <datalist> element?

What is the viewport meta tag? Why is it important for responsive design?

What is the purpose of the <progress> element?
