IE9 and Position Fixed

◇◆丶佛笑我妖孽 提交于 2019-12-04 05:13:44

问题


I'm trying to use the position fixed css on a simple one page website with vertical scrolling but am facing problems with IE9, it's like it's ignoring the fixed property, you can see the website here

http://cairocubicles.com/sandbox/mahaly-iphone/

looks right on chrome, firefox.

Appreciate the help. Yehia


回答1:


Try adding a doctype to make sure IE9 isn't going into quirks.




回答2:


This took me a while to figure out. I was writing some javascript using which contained code to write to console.log. Never noticed it was a problem as i never use IE and nothing appeared to be broken in FF or chrome. I had the js above my declaration and that was what was causing the error. you shouldnt put anything browser side before that declaration.



来源:https://stackoverflow.com/questions/6694517/ie9-and-position-fixed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!