How to set IE11 Document mode to edge as default?

前端 未结 7 847
孤城傲影
孤城傲影 2020-11-29 01:07

I have Internet Explorer installed on my computer but needed to test compatibility mode of IE 7. After changing the document mode to IE 7, it set it as default and now I can

相关标签:
7条回答
  • 2020-11-29 01:47

    I've come across this problem myself. In my case, resetting IE was the quickest solution to the problem:

    http://support.microsoft.com/kb/923737

    0 讨论(0)
  • 2020-11-29 01:48

    The rendering mode in Internet Explorer 11 can appear stuck if the site is added to your local Compatibility View list. When this happens, the rendering mode inside the developer tools and out will default to the specified compatibility settings.

    While this may not be the only way a site can get on this list, Microsoft does document the steps for how to manually add a site to this list.

    From Fix site display problems with Compatibility View:

    To add a site to the Compatibility View list

    1. Open the desktop, and then tap or click the Internet Explorer icon on the taskbar.

    2. Tap or click the Tools button, and then tap or click Compatibility View settings.

    3. Under Add this website, enter the URL of the site you want to add to the list, and then tap or click Add.

    Site Compatibility View Removal Instructions:

    To remove a site from this list, follow these instructions.

    1. Go to Tools > Compatibility View settings.
    2. In the resulting dialog, click on the site you want to remove from the list.
    3. Click the Remove button.

    Screenshots:

    Tools - Compatibility View settings

    Compatibility View settings dialog

    0 讨论(0)
  • 2020-11-29 01:49

    try to add this section in your web.config file on web server, sometimes it happens with php pages:

    <httpProtocol>
        <customHeaders>
            <clear />
            <add name="X-UA-Compatible" value="IE=edge" />
        </customHeaders>
    </httpProtocol>
    
    0 讨论(0)
  • 2020-11-29 01:54

    I ran into this problem with a particular webpage I was maintaining. No matter what settings I changed, it kept going back to IE8 compatibility mode.

    It turned out X-UA-Compatible was set in the metadata in the head:

    <meta http-equiv="X-UA-Compatible" content="IE=8" >
    

    As I later discovered, and at least in Internet Explorer 11, you can see where it gets its "document mode" from, by going into developer tools (F12), then selecting the tab "Emulation", and checking the text below the drop down "Document mode".

    Since we only support IE11 and higher, and Microsoft says document modes are deprecated, I just threw the whole thing out. That solved it.

    0 讨论(0)
  • 2020-11-29 01:57

    unchecked the "Automatically detect settings" in the Local Area Network Settings (found in "Internet Options" > Connections > LAN Settings.

    0 讨论(0)
  • 2020-11-29 01:59

    You can achieve this using a meta tag as follows:

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