Home >Web Front-end >HTML Tutorial >Please give some advice_html/css_WEB-ITnose

Please give some advice_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:24:21857browse

We have a website. The interface display in various browsers used to be normal. This morning when I opened it with IE, it was slightly deformed, but it was normal when opened with other browsers. What is the reason for this?


Reply to the discussion (solution)

This may be because of the IE version problem. Our previous project had no problem under IE7 and 8, but it did not work under IE9 There is a problem

In IE, I found that width: 990px; margin: auto; did not work. Why?

This depends on the two attributes set by your tag

In Google, width: 990px; margin: auto; works, but in IE, these two attributes do not take effect. , so the style will change, I don’t know why, please give some advice

This should be a document parsing problem
If you see the page to the left under IE, it is a problem with the document declaration, which is the final problem The above line
is now all html. If there is no such line or there is a problem with this line, or there is a problem above this line, similar problems will occur
I hope it can help you

Yes The page looks to the left in IE. How should I change it?

Shouldn’t I write it? Check the code to see if there is something wrong with the document statement.
1. If not, add a line of code to the first line.
2. If you make a mistake, correct it
3. If the document statement outputs something, find a way to remove it
----》This is the first line



--This is also commonly used



in ie The first line is required

The first line of my document is defined like this

Is there something wrong with writing it this way?

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