IntersectionObserver.root
root
属性用来获取当前 intersectionObserver
实例的根元素。
语法
intersectionObserver.root;
规范
Specification | Status | Comment |
---|---|---|
Intersection Observer IntersectionObserver |
Working Draft | Initial definition |
浏览器兼容性
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help! (en-US)
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。