问题描述
当前,Shadow DOM仅受Chrome和Opera(仅Webkit)支持,并且可以在Firefox中启用(可选),它可以通过webcomponents.js在所有浏览器中使用( https://www.polymer-project.org/0.5/docs/start/platform.html ).
Currently Shadow DOM is supported by only Chrome and Opera (only webkit) and can be optionally enabled in Firefox, it can how ever be used in all browsers using webcomponents.js (https://www.polymer-project.org/0.5/docs/start/platform.html).
有人已经在使用这个吗?是否与其他不受支持的浏览器100%兼容,我们将不胜感激.
Is someone already using this? Is it 100% compatible with other non-supported browsers, any help would be appreciated.
(有关影子dom和webcompanents.js的参考链接: http://webcomponents. org/articles/introduction-to-shadow-dom/)
(Ref link about shadow dom and webcompanents.js: http://webcomponents.org/articles/introduction-to-shadow-dom/)
推荐答案
经过一番研究或研究,我发现Shadow DOM可以使用webcomponents.js在IE10 +,Chrome,firefox和safari浏览器中使用
After a bit or research I've found out Shadow DOM can be used in browsers IE10+, Chrome, firefox and safari using webcomponents.js
这篇关于将Shadow DOM与polyfills,platform.js和webcomponents.js结合使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!