开发者

IE9 and Position Fixed

开发者 https://www.devze.com 2023-03-20 13:00 出处:网络
开发者_StackOverflowI\'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 ca
开发者_StackOverflow

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


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消