fkjj.net
ǰλãҳ >> jquEry sCrolltop ΪʲôûЧ >>

jquEry sCrolltop ΪʲôûЧ

취 ԪΪɼ״̬el.style.display='block'Ϳԭel.scrollTopԻjQueryscrollTopˡ

ɡ ҪbodyĹ¼ $(function(){ var min_height = 100; $(window).scroll(function() { //ȡڵĹĴֱλ var s = $(window).scrollTop(); //ڵĹĴֱλôҳС߶ʱ...

ֻquirkģʽ£ body.scrollTopDZжֵ֧ Ҳ ҲûбҪȥǣ ֻҪסһ if(window.pageYOffset){//һȥ˴󲿷֣ ֻIE678 }else if(document.documentElement.scrollTop ){//IE678 ķquirkģʽ }...

ԭ html˸߶ʱȡ$(window).scrollTop(),$(document).scrollTop()ȡֵΪ0 취 ֵ $(document).ready(function() { $(window).scroll(function(e){ var juantop=$(document).scrollTop() alert(juantop)...

$(".dh4").click(function(){ $('body,html').animate({scrollTop:670},500); return false; }) ʱ붥670pxλãһǸdiv붥ֱ

Ҫˣڵ㱾scrollTopԣҲǿֵָ

ضΪbodyscrollTopΪ0 ЧanimateJqueryԶ嶯 $("#returnTop").click(function () { var speed=200;//ٶ $('body,html').animate({ scrollTop: 0 }, speed); return false; });עreturnTopΪ...

ãҪȷһҪjQueryscrollTopȡඥ˵ľ룬ҪʹscrollTopùඥ˵ľ룬˵Ҫ߼汸 1ǻȡԭjsʵֺף var div = document.getElementById('wgt-ask'), scrollTop ...

$('html,body').animate({ scrollTop: h}, 500);

scrollTop() ػƥԪصĹĴֱλá֮ǹҳ涥Ĵֱ൱yscrollLeft() ػƥԪصĹˮƽλá ˮƽλָǴλʱλ...

վҳ | վͼ
All rights reserved Powered by www.fkjj.net
copyright ©right 2010-2021
磬ַϵͷzhit325@qq.com