jQuery跳转到页面底部效果
在线体验:http://hovertree.com/texiao/jquery/9.htm
以下是完整HTML代码:
<!DOCTYPE html><html><head><metahttp-equiv="Content-Type"content="text/html; charset=utf-8"/><title>跳到底部 jquery效果- 何问起</title><metacharset="utf-8"/><style>a{color:white}body{margin:0px}</style><scripttype="text/javascript"src="http://hovertree.com/ziyuan/jquery/jquery-1.11.3.min.js"></script></head><body><divstyle="position:fixed;left:0px;right:0px;width:120px;margin-left:auto;margin-right:auto;top:130px;background-color:silver"><aid="hovertreetofoot"style="color:red"href="Javascript:;">跳到底部</a><ahref="http://hovertree.com/hvtart/bjae/65358656.htm">效果</a></div><divstyle="background-color:#959822; width:100%;height:150px;">请点击本页面的 跳到底部 链接体验效果</div><divstyle="background-color:Green; width:100%;height:150px;">hovertree.com<
br/><ahref="http://keleyi.com/dev/94fb5964c80ee829.htm"target="_blank">绿色箭头图片返回顶部效果</a><
br/><ahref="http://keleyi.com/a/bjac/7cc2358ac924ebc5.htm"target="_blank">蓝色方块返回顶部</a><
br/><ahref="http://keleyi.com/a/bjac/6f008786225269ac.htm"target="_blank">纯文本返回顶部</a><
br/><ahref="http://keleyi.com/a/bjac/8aa32432160f9aa4.htm"target="_blank">漂亮的返回顶部、底部和留言</a></div><divstyle="width:738px;height:186px;margin:10px auto;"></div><divstyle="background-color:Red; width:100%;height:150px;">欢迎</div><divstyle="background-color:Yellow; width:100%;height:150px;">hi</div><divstyle="background-color:Silver; width:100%;height:150px;">何问起</div><divstyle="background-color:Aqua; width:100%;height:150px;">hovertree.com</div><divstyle="background-color:Fuchsia; width:100%;height:150px;">何问起</div><divstyle="background-color:Green; width:100%;height:150px;">hovertreetofoot</div><divstyle="background-color:Blue; width:100%;height:150px;">柯乐义</div><divstyle="background-color:Olive; width:100%;height:350px;">何问起 返回顶部</div><divstyle="background-color:Green; width:100%;height:150px;">HoverTree</div><divstyle="background-color:Purple; width:100%;height:150px;">jquery</div><divstyle="background-color:Green; width:100%;height:150px;"><ahref="http://hovertree.com/hvtart/bjae/65358656.htm"target="_blank">原文</a></div><divstyle="background-color:Lime; width:100%;height:150px;">hovertree.com</div><divstyle="background-color:Orange; width:100%;height:150px;">完整代码</div><divstyle="height:130px;"></div><script>$('#hovert'+'reetofoot').click(function() {
$('html,body').animate({ scrollTop: $(document).height() },1000);returnfalse;
});</script></body></html>
博客园 roucheng js,jquery,CSS,html5特效 http://www.cnblogs.com/roucheng/p/texiao.html