Force IE9 into browser compatibility view

前端 未结 3 1239
没有蜡笔的小新
没有蜡笔的小新 2020-12-07 01:54

I am aware of how to force IE into viewing a page in document compatibility, but what about browser compatibility view?

I have a pro

3条回答
  •  无人及你
    2020-12-07 01:57

    See MSDN documentation.
    You should use emulateIE7 since compatibility mode is kind of IE7:

    
    

    Edit

    If the above does not work, the other options are really poor.
    Quoting from the link above:

    • Microsoft has not placed the domain name of the site on a blacklist. (blacklist linked in original article is very old and not being updated, you can find a local copy on your computer)
    • An intranet admin has not placed the site on a blacklist.
    • The user has not pressed the Compatibility View button (duh)
    • The site is not in the intranet zone
    • The page is not framed by a Compatibility Mode page.

    The above are, AFAIK, the only causes for compatibility mode.
    Unless you are prepared to contact Microsoft directly to have your website added to the global blacklist, there isn't much you can do (unless you want to wrap your site in a frame that originates from a blacklisted domain).

提交回复
热议问题