top
位置が相対的なdiv要素のを取得しようとしています。したがって、構造は次のようになります。
<div class="head"></div>
<div class="main"></div>
<div class="foot"></div>
div { position : relative; }
今私は試しました:
$(".foot").css("top") => auto
$(".foot").offset().top => This gives value but that value is
not matching the current top position of the foot div
私はここで何が欠けていますか?