MDN’s new design is in Beta! A sneak peek: https://blog.mozilla.org/opendesign/mdns-new-design-beta/

IntersectionObserver.root

root 属性用来获取当前 intersectionObserver 实例的根元素。

语法

intersectionObserver.root;

规范

Specification Status Comment
Intersection Observer
IntersectionObserver
Editor's Draft Initial definition

浏览器兼容性

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 51.0 未实现[1] 未实现[2] 未实现 ? ?
Feature Android Android Webview Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support 未实现 51.0 未实现[2] 未实现 未实现 ? ? 51.0

[1]  实现于 Windows Insider Preview Build 14986

[2] 实现于 (Firefox 53.0 / Thunderbird 53.0 / SeaMonkey 2.50),但默认处于关闭状态,需要打开dom.IntersectionObserver.enabled。

文档标签和贡献者

 此页面的贡献者: ziyunfei
 最后编辑者: ziyunfei,