图表显示在非IE浏览器的同一行,但在IE浏览器的下一行 [英] Charts showing on the same line in non-IE browsers, but on the next line on IE browsers
问题描述
以下是您可以为自己尝试的确切代码:
Here is the exact code you can try for yourself:
http://bl.ocks.org/AndrewStaroscik/5232739
在IE中渲染时,每个图表显示在不同的行。
当我在IE以外的任何其他浏览器中渲染它时,图表显示在同一行上,如在线元素。
When I render this in IE, each chart shows in a different line. When I render it in any other browser except for IE, charts show on the same line like in-line elements.
发生了什么事?这是什么原因?有什么修复?
What is going on? What is the reason for this? Is there any fix ?
推荐答案
对于我所有的人都是在内联时装加载的原因?因为SVG具有由浏览器的USER AGENT关联的内联属性。我不知道你使用的IE浏览器,但我使用IE 10.0,chrome和firefox也最新。一切都显示为INLINE。
for me all are loading in the inline fashion the reason ? Because SVG has inline property associated by the USER AGENT of the browser . I am not sure which IE browser you used , but I am using IE 10.0 , chrome and firefox also the latest . EVERYTHING displays it INLINE .
ps:SVG无法在IE小于8时正常工作
ps: SVG doesn't work properly for IE less than 8
FIX:的svg使用CSS。由于某种原因,它可能被推送到下一行。
FIX : try reducing height and width of the svg using CSS . It might be pushed to next line for some reason.
这篇关于图表显示在非IE浏览器的同一行,但在IE浏览器的下一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!