原出处:
https://blogs.msdn.microsoft.com/ie/2009/03/10/more-ie8-extensibility-improvements/
这是一个困扰了我很多年的问题,偶然间发现了微软的博客文章,马上试了一下,一切OK!
For compatibility purposes, the WebBrowser control will run in IE7 Standards Mode by default if no Feature Control Key value is defined for an application.
To run a WebBrowser control in IE8 Standards Mode, use the following new value into the registry:
[(HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE)\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
“MyApplication.exe” = dword 8000 (Hex: 0x1F40)
IE 版本 | dword值 |
---|---|
7 | 7000 |
8 | 8888 |
9 | 9999 |
10 | 10000 |
11 | 11000 |
后来又发现一篇讲类似问题的文章:
http://www.cnblogs.com/liuzhendong/archive/2012/04/27/2474363.html