Ctrl+/
IE11
F11
ESC
PgUp
PgDn
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>有趣的动画回到顶部</title>
<script type="text/javascript" src="//apps.bdimg.com/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
$(window).scroll(function(){
var $scrollTop = $(window).scrollTop();
if($(window).scrollTop() > $(window).height()/2){
var $wt = parseInt(($(window).height())*0.9);
var $getTop = parseInt($scrollTop)+$wt;
$("#content").fadeIn(500).animate({"top":$getTop + "px"},{duration:600,queue:false});
}else if($(window).scrollTop() <= $(window).height()/2){
CSS代码...
JS代码...
xxxxxxxxxx