Page stuck in Quirks Mode

后端 未结 2 855
予麋鹿
予麋鹿 2020-12-16 06:55

Currently the page I am working displays fine in Chrome and Firefox, but in IE9 it is rendering in Quirks mode.

Looking into the issue further, it seems that

<
相关标签:
2条回答
  • 2020-12-16 07:28

    Also check your IE,

    1. Click on Tools
    2. Compatibility view settings
    3. Be sure your site is not included in the "compatibility view" aka quirks
    4. See also the check boxes
    0 讨论(0)
  • 2020-12-16 07:48

    I don't know what you mean by "[the doctype] is always getting commented out".

    There are many different things that can cause Quirks Mode, see here.

    Another common cause is having stuff before the doctype. Even invisible stuff.

    You can fix this without debugging the actual problem if you add this in your <head>:

    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    
    0 讨论(0)
提交回复
热议问题