IE9 WebBrowser Control 是否支持 IE9 的所有功能,包括 SVG? [英] Will the IE9 WebBrowser Control Support all of IE9's features, including SVG?

查看:26
本文介绍了IE9 WebBrowser Control 是否支持 IE9 的所有功能,包括 SVG?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近升级到 IE9-beta.现在,在我的 .Net (3.5) WinForm 应用程序中,我想使用 WebBrowser 控件.

I recently upgraded to IE9-beta. Now, In my .Net (3.5) WinForm application I want to use WebBrowser control.

那么我的问题是,WebBrowser控件是否会展示IE9的所有属性和功能?

So my question is, whether the WebBrowser control will exhibit all properties and functions of IE9?

我担心的是,我想在上面渲染一些 SVG 图形.

My concern is, I want to render some SVG graphics on it.

推荐答案

WebBrowser 控件的 IE9版本"与 IE8 版本一样,实际上是多个浏览器合二为一.与 IE8 版本不同,您可以通过更改 doctype 对页面内的渲染模式进行更多控制.当然,要更改浏览器模式,您必须像之前的答案一样设置您的注册表.这是 FEATURE_BROWSER_EMULATION 的 reg 文件片段:

The IE9 "version" of the WebBrowser control, like the IE8 version, is actually several browsers in one. Unlike the IE8 version, you do have a little more control over the rendering mode inside the page by changing the doctype. Of course, to change the browser mode you have to set your registry like the earlier answer. Here is a reg file fragment for FEATURE_BROWSER_EMULATION:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION]
"contoso.exe"=dword:00002328

这里是完整的代码集:

  • 9999 (0x270F) - Internet Explorer 9.网页在 IE9 中显示标准模式,无论!DOCTYPE 指令.
  • 9000 (0x2328) - Internet Explorer 9.包含基于标准的 !DOCTYPE 的网页指令以 IE9 模式显示.
  • 8888 (0x22B8) - 网页是以 IE8 标准模式显示,不管 !DOCTYPE 指令如何.
  • 8000 (0x1F40) - 网页包含基于标准的 !DOCTYPE 指令以 IE8 模式显示.
  • 7000 (0x1B58) - 网页包含基于标准的 !DOCTYPE 指令以 IE7 标准模式显示.
  • 9999 (0x270F) - Internet Explorer 9. Webpages are displayed in IE9 Standards mode, regardless of the !DOCTYPE directive.
  • 9000 (0x2328) - Internet Explorer 9. Webpages containing standards-based !DOCTYPE directives are displayed in IE9 mode.
  • 8888 (0x22B8) -Webpages are displayed in IE8 Standards mode, regardless of the !DOCTYPE directive.
  • 8000 (0x1F40) - Webpages containing standards-based !DOCTYPE directives are displayed in IE8 mode.
  • 7000 (0x1B58) - Webpages containing standards-based !DOCTYPE directives are displayed in IE7 Standards mode.

完整文档:

http://msdn.microsoft.com/en-us/library/ee330730%28VS.85%29.aspx#browser_emulation

这篇关于IE9 WebBrowser Control 是否支持 IE9 的所有功能,包括 SVG?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆