javascript - scrolltop() doesn't work with body.height() -
i've got fiddle. http://jsfiddle.net/qf47a/3/
well, tried similar code on website, worked great until added doctype. code return top 0px.
well take look: on jsfiddle. starts 0, , ascends negative numbers.
when add position:absolute; element in dom (in english) gives it's space float does. there isn't way around unless add height body.
basically body doesn't know #fly there body has no height.
if remove position:absolute; see
document.height work in case
Comments
Post a Comment