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??
附言我正在使用 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.
提前感谢您的帮助.
推荐答案
IE9 不支持 foreignObject
.查看 MDN 页面底部的浏览器兼容性"表:外来物体.
IE9 does not support foreignObject
. Check out the "Browser Compatibility" table at the bottom of the MDN page: foreignObject.
这篇关于ForeignObject 在 IE 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!