ForeignObject不工作在IE [英] ForeignObject not working in IE
问题描述
我有我的文本附加到外部对象内的div。
文本在chrome中很好,但在IE中根本不显示。
我研究了它,它似乎IE不支持外来对象。
有一个解决方法,将使它在IE中工作
I have my text appended to div inside a foreign object. The text renders fine in chrome but does not show at all in the IE. I have researched on it and it seems that IE does not support foreign object. Is there a work-around that will make it work in IE??
P.S。我使用d3.js来创建圈子,我的外物是在圆圈。
我使用外部对象来克服文本对齐问题。
P.S. I am using d3.js to create circles and my foreign object is in the circle. I have used foreign object to overcome text alignment issues.
感谢您在Advance中的帮助。
Thanks for the help in Advance.
推荐答案
IE9不支持 foreignObject
。查看MDN页面底部的浏览器兼容性表格: foreignObject 。
IE9 does not support foreignObject
. Check out the "Browser Compatibility" table at the bottom of the MDN page: foreignObject.
这篇关于ForeignObject不工作在IE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!