Home  >  Article  >  Web Front-end  >  Strange problem_html/css_WEB-ITnose

Strange problem_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:17:421102browse

On my computer's own IIS7, the left menu can be displayed normally in IE9 and Firefox. After uploading it to the Internet, it can be displayed normally in Firefox, but not in IE9. It has gone to the right. How can I get it back? What's going on?




Reply to the discussion (solution)

The position of the menu of your coordinates is fixed. Go and learn about the usage of fixed

The position of the menu in your coordinates is fixed. Let’s learn how to use fixed.


Yes, I use fixed for my menu. When I want it to move up and down, the menu does not move.

It doesn’t matter with this server, check the compatibility of your CSS

It doesn’t matter with this server, check the compatibility of your CSS

If it comes to CSS compatibility, I have it on my computer IIS7 The webpage is normal when using IE9 and Firefox

HTML code parsing is left to the browser, IIS is just a container

I agree with the above, if you find it, please post it and learn together. Next


Try leaving only the margin-top of the div. Remove all other margins, including float: left. This is not needed either.

Only leave the margin-top of the div. Try it, remove all other margins, and float: left. You don’t need

. Of course it’s OK. I can just remove position: fixed, but I want to make the menu on the left move up and down. When viewing a web page, pin it

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