Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
絶対的に配置された要素は、常に最も近くに配置された祖先を基準にして配置されます。最も近い位置にある祖先だけでなく、絶対位置にある要素の参照要素を指定する方法はいくつかあるのでしょうか。(CSSまたはjquery)
いいえ、できません。しかし、それをその要素に追加(/移動)するだけではどうでしょうか。
$('#absoluteElement').appendTo('#relativeToElement');
恐れません!しかし、多くのUI開発者がこのようなものを使用することを夢見ていると確信しています…</ p>
relative-to: #arbitrary .selector;