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.
要素から左上の位置を見つけたい。ただし、この要素の親コンテナにはtext-align:center;があります。したがって、一番下の行にいくつかある場合、最初の行は450pxではなく0pxになります。
使用offset:
offset
offset = $( yourselectorhere ).offset()