C# 中的 Google Chrome 浏览器内嵌框架?
如何在 .NET 的 WebBrowser 控件中使用 Google Chrome 浏览器内嵌框架?我知道我必须:
<meta http-equiv="X-UA-Compatible" content="chrome=1">
在我正在加载的页面的开头,但如何做到这一点?
How can I use Google Chrome Frame in .NET's WebBrowser control? I know I have to have:
<meta http-equiv="X-UA-Compatible" content="chrome=1">
In the beginning of the page that I'm loading, but how to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您好,@ErickPetru 所说的是真的,但是还有一些其他选项,尤其是 ChromiumEmbeddedFramework。有 2 个针对 .net 框架的项目。我以前用过 CefSharp,而 cefglue 是新的。查看那些在 .net 应用程序中嵌入类似 chrome 浏览器的内容。
cefglue
CefSharp
Hi it's true what @ErickPetru said, but there are some other options especially with the ChromiumEmbeddedFramework. There are 2 projects targeting the .net framework. I've used CefSharp before and cefglue is new. Have a look at those for embedding a chromelike browser in a .net application.
cefglue
CefSharp
Google Chrome 浏览器内嵌框架是一个 Internet Explorer 插件,因此不支持
WebBrowser Control
(因为该控件本身不支持插件)。此官方帖子位于建议在应用程序中使用 Chrome Frame ActiveX 本身的替代方法,但我从未尝试过。
Google Chrome Frame is an Internet Explorer plugin, so
WebBrowser Control
isn't supported (since the control itself doens't support plugins).At this official thread is being suggested an alternative approach using Chrome Frame ActiveX itself inside your application, but I never tried it.