开发者

how do offset top when using slideto with jquery

I can get the page to slide to the div i want, but i want the div to be offset from the top by 25 px, anyone have any idea of to fix my code

$('#project_btn').bind('click', function() {
$('html, body').animate({
scrollTop: $("#project_page").offset(开发者_开发问答).top
},1000);
});

Also does anyone know how i could get my menu bar to always stay at the top of the page?


I am a little unsure of what you are wanting, but look at this example?: http://jsfiddle.net/lathan/cMTMm/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜