Home >Web Front-end >HTML Tutorial >IE compatibility web page test? Please help me solve the problem_html/css_WEB-ITnose

IE compatibility web page test? Please help me solve the problem_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:09:45987browse

The width and height settings of the DIV grid on Firefox are:
width:1003Px height:5px;

Then on Ie6, the height is 20px, which can only be increased to the larger one, not subtracted. (height: 30px; OK height: 5px; but not 20px, you can’t reduce it by one pixel)


Reply to the discussion (solution)

Please Post more code.

ie6 div has a default height,
width:1003px; height:5px; overflow:hidden; try

Generally speaking, when encountering this situation, Just add overflow:hidden; and that's it. .

Due to line-height, the height under IE6 cannot be reduced
You can set line-height to a smaller value
or overflow:hidden can also be used

This is a BUG of IE6. IE6 will default to a font height of 12px. If the height is less than 12PX, IE6 will default to a height of 12 pixels instead of smaller pixels. If it is larger than the pixels of the font, it will have no effect

This is a bug in IE6, just add overflow:hidden; or font-size:0;.

There are too many bugs in ie6, and Microsoft is too weak. I said I forced to upgrade to IE6 but I still haven’t seen the effect

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