IE9 and Position Fixed

后端 未结 2 1342
不思量自难忘°
不思量自难忘° 2021-01-25 01:24

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

相关标签:
2条回答
  • 2021-01-25 02:03

    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 讨论(0)
  • 2021-01-25 02:16

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

    0 讨论(0)
提交回复
热议问题