IE9 and Position Fixed

后端 未结 2 1349
不思量自难忘°
不思量自难忘° 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.

提交回复
热议问题