2014-01-23 69 views
0

我正在使用D3js库实现网络拓扑,该库使用SVG进行图形渲染。我使用强制布局来实现它。在Internet Explorer中的SVG容器问题

我正在使用此示例http://bl.ocks.org/mbostock/6123708。 当我们在新窗口中点击打开http://bl.ocks.org/mbostock/raw/6123708/,it bahevious关于Google Chrome浏览器和Firefox中的容器而不是IE浏览器(IE版本是11)时,我们看到此示例显示在新窗口中。

谷歌铬屏幕 enter image description here

IE屏幕 enter image description here

您可以比较,在谷歌浏览器与移动这点对于移动到其容器中的网格线时,同时即它不它认为全身是容器。

+0

的Internet Explorer 11 –

+0

可能的复制http://stackoverflow.com/questions/10077264/should-svg-contents-be-visible-outside-an-embedded-svg-默认情况下 –

+0

亲爱的埃里克专注于溶出而不是重复的数据。:) –

回答

1

试试这个:

<svg width="960" height="500" viewBox="0 0 960 500" style="overflow:hidden;"> 
+0

很酷它在这里工作。感谢很多Wil。 –