我可以从HTML覆盖IE企业模式吗? [英] Can i over-ride IE enterprise mode from HTML?

查看:238
本文介绍了我可以从HTML覆盖IE企业模式吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行 D3 Visualization 。我正在运行IE企业运行的内部公司sharepoint网站上托管我的HTML / CSS / JS,这会迫使我从IE11进入我的控制台的IE8环境:

I'm trying to run a D3 Visualisation. I'm hosting my HTML/CSS/JS on an internal company sharepoint site that has IE enterprise running which is forcing me from IE11 into an IE8 environment per my console:

HTML1122: Internet Explorer is running in Enterprise Mode emulating IE8.

我的理解是IE8中根本不支持d3 SVG图形。我尝试在我的< head>< / head> 部分的最顶部使用此元标记覆盖无效:

My understanding is that the d3 SVG graphics are not supported at all in IE8. I've tried over-riding with this meta tag at the very top of my <head></head> section to no avail:

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

我怀疑我可以更改浏览器设置。有没有其他方法可以覆盖我的HTML?

I doubt I can have the browser settings changed. Is there any other way to override from my HTML?

问题似乎解决了同样的问题。但如果没有网络管理员,则无法提供解决方案我无法将我的网站从企业模式列表中删除。所以希望能够进一步探索潜在的工作..

This question seems to address the same issue. But offers no solution without being a network admin. I'm not going to be able to have my site removed from the Enterprise Mode list. So hoping to explore potential work arounds a little further..

推荐答案

你的理解是正确的; D3将无法在IE8中运行。

Your understanding is correct; D3 will not work in IE8.

不幸的是,您仍然坚持使用公司设置,如果您的元标记不起作用,那么你不会能够覆盖它们。

Unfortunately, you are also stuck with your corporate settings, and if your meta tag isn't working, then no you won't be able to override them.

解决方案:


  1. 在公司网络之外托管网站。
    强制IE8模式的设置仅适用于网络内的网站,因此如果您的网站是外部托管的,那么IE11的行为就像IE11一样,就像它适用于其他外部网站。如果您无法将其完全托管在网络之外,那么您的防火墙可能会为您提供可以使用的DMZ,或者您可以使用其中任何一个允许该站点看起来位于网络外部的代理,这将具有效果相同。

  1. Host the site outside of your corporate network. The settings that force IE8 mode only apply to sites inside the network, so if your site is hosted externally then IE11 will behave just like IE11 should, and just like it does for other external sites. If you can't get it hosted completely out of the network, you firewall may give you a DMZ that you can use, or you could use a proxy either of which which allow the site to appear to be outside the network, which would have the same effect.

使用其他图形工具

D3与IE8不兼容,因为它使用SVG在IE8中不可用。但是,IE8确实包含一种称为VML的专有矢量图形语言,它实际上与SVG相同。许多较旧的SVG库(如 Raphael )通过在VML和SVG中实现其功能来支持IE8。我有一段时间没有使用过IE8,所以我不能评论其中任何一个版本的最新版本,但拉斐尔当时对我来说确实很有用。

Use a different graphics tool
D3 is not compatible with IE8 because it uses SVG which is not available in IE8. However, IE8 does include a proprietary vector graphics language called VML which is effectively the same thing as SVG. A number of older SVG libraries such as Raphael supported IE8 by implementing their functionality in VML as well as SVG. I haven't used IE8 for some time, so I can't comment on recent versions of any of these, but Raphael certainly worked well for me at the time.

使用兼容性层使D3工作
名为的库存在R2D3 ,它是为了增加IE8与D3的兼容性而明确编写的。它完全符合上述要求,并将D3的SVG输出转换为VML。但是,正如您在我链接的项目页面上所注意到的,这是一个死的项目,作者绝对不支持,以至于他们明确告诉您不要使用它。

Use a compatibility layer to make D3 work A library called R2D3 exists which was written explicitly to add compatibility for IE8 to D3. It does exactly as per the above, and translates D3's SVG output into VML. However, as you'll note on the project page I linked to, this is a dead project and is absolutely not supported by the authors, to the point that they explicitly tell you not to use it.

这篇关于我可以从HTML覆盖IE企业模式吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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