問題タブ [intersection-observer]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
494 参照

javascript - CSS | IE11 で位置スティッキーが機能しない

スティッキー位置条件が一致したときに、要素に特定のクラスを追加したい。Intersection Observation API を使用して、要素がいつスティッキー位置になるかを確認しています。コードは IE11 を除くすべてのブラウザで正常に動作しています。Intersection Observation API for IE の polyfill を追加しました。

これは、上記のシナリオのフィドルです。

ありがとう