Home  >  Article  >  Web Front-end  >  Problem with the width and height of the middle layer of ie_html/css_WEB-ITnose

Problem with the width and height of the middle layer of ie_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:18:351073browse

Yesterday, I suddenly discovered a problem. The width and height of the layer are displayed incorrectly in IE (tried with IE7/IE8/IE9), but other browsers are normal. In the past, I debugged the style in IE first, and then debugged it after completion. I checked the effect in other browsers and found nothing abnormal. I don’t know the reason. For example, in the following code, I only defined a 400*300 layer in the page and did not use floating, but the width in IE became 417*312. What's going on? Is there something wrong with my IE?

<html>	<head></head>	<body>		<div style="background:#faa; width:400px; height:300px; padding:0px; margin:0px;"></div>	</body></html>


Reply to the discussion (solution)

I verified it with your code. My IE6, 7, and 8 did not find the problem you mentioned

No problem~~

Is there something wrong with my IE? Because I have never encountered this problem before, it makes me very depressed. The following is the display effect in IE and Chrome:

I found the problem, the mentally retarded can no longer be retarded, it is the problem of IE zoom display
The reason why I am so retarded is because I am in the layer A flash needs to be placed in it. After zooming in, other elements will be zoomed in accordingly, but the flash will not change, so there is obviously an extra layer to place the flash, which makes me think there is something wrong

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