将在IE9浏览器控件支持所有IE9的功能,包括SVG? [英] Will the IE9 WebBrowser Control Support all of IE9's features, including SVG?

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

问题描述

我最近升级到IE9-β。现在,在我的.Net(3.5)WinForm应用程序我想用 web浏览器控制。

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

所以我的问题是,无论是 web浏览器控制将呈现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_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
"contoso.exe"=dword:00002328

下面是C $ CS全套$:

Here is the complete set of codes:


  • 9999(0x270F) - Internet Explorer 9的。
    网页显示在IE9
    标准模式,而不管
    !DOCTYPE指令。

  • 9000(0x2328) - !是Internet Explorer 9的网页包含基于标准的DOCTYPE
    指令显示在IE9模式。

  • 8888(0x22B8) -Webpages是
    在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.

完整的文档:

<一个href=\"http://msdn.microsoft.com/en-us/library/ee330730%28VS.85%29.aspx#browser_emulation\">http://msdn.microsoft.com/en-us/library/ee330730%28VS.85%29.aspx#browser_emulation

这篇关于将在IE9浏览器控件支持所有IE9的功能,包括SVG?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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