position:fixed breaks in IE9

前端 未结 2 1818
被撕碎了的回忆
被撕碎了的回忆 2020-12-19 08:09

I have a site that heavily utilizes jQuery and CSS to achieve some pretty nice effects. The pages work flawlessly in FF and Chrome - however in IE9 (and possibly other versi

2条回答
  •  眼角桃花
    2020-12-19 08:49

    The most likely cause is that your page is being displayed in Quirks Mode.

    Internet Explorer, more than any other browser, will screw up your page in Quirks Mode.

    Press F12 to open the Developer Tools to find out which mode is being used.

    If it is indeed Quirks Mode, the most likely reason is that you've forgotten to add a doctype as the very first line:

    
    

    If you already have a doctype, there are other possible causes.

提交回复
热议问题