How to set FEATURE_BROWSER_EMULATION to IE8 mode?

后端 未结 3 533
-上瘾入骨i
-上瘾入骨i 2020-12-08 23:58

We are using an embedded SWT Browser in a Java application. The SWT Browser wraps an IE8 WebBrowser Control object. I am running into the well-known issue that by default, t

相关标签:
3条回答
  • 2020-12-09 00:37
    1. HKCU\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION
    2. Added your process name then set the DWORD value is 9999
    0 讨论(0)
  • 2020-12-09 00:42

    Check the compatibility view settings in standalone IE (Tools > compatibility view settings). Is your page listed in the 'sites to display in compability view list' or is the 'show all sites in compatiblity view' box checked? With that reg value set to 8000, webbrowser control still honors compatibility view settings.

    0 讨论(0)
  • 2020-12-09 00:47

    Check this Solution First :

    Regarding IE9 WebBrowser control

    if it does not meet your need, here is the registry solution


    To run a WebBrowser control in IE11 Standards Mode, use the following new value into the registry:

    32 bits: [(HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE)\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
    
    64 bits: [(HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE)\Software\wow6432node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
     "DesignU.exe" = dword 11000 (Hex: 0x2af8)
    

    To run a WebBrowser control in IE10 Standards Mode, use the following new value into the registry:

    32 bits: [(HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE)\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
    
    64 bits: [(HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE)\Software\wow6432node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
     "DesignU.exe" = dword 10000 (Hex: 0x2710)
    

    To run a WebBrowser control in IE9 Standards Mode, use the following new value into the registry:

    32 bits: [(HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE)\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
    
    64 bits: [(HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE)\Software\wow6432node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
     "DesignU.exe" = dword 9000 (Hex: 0x2328)
    

    To run a WebBrowser control in IE8 Standards Mode, use the following new value into the registry:

    32 bits: [(HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE)\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
    
    64 bits: [(HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE)\Software\wow6432node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
     "DesignU.exe" = dword 8000 (Hex: 0x1F40)
    

    To run in IE7 Standards Mode, use the following registry value:

    32 bits: [(HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE)\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
    
    64 bits: [(HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE)\Software\wow6432node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
     "DesignU.exe" = dword 7000 (Hex: 0x1B58)
    
    0 讨论(0)
提交回复
热议问题