摘要:
chrome支持$Lines.hover(function(){ $(this).stop().animate({backgroundPositionY: "-=50px"},500); },function(){ $(this).stop().animate({backgroundPositionY: "+=50px"},500); });但是FF不支持 阅读全文
摘要:
$(document).ready(function(){ alert($(window).height()); //浏览器当前窗口可视区域高度 alert($(document).height()); //浏览器当前窗口文档的高度 alert($(document.body).height());//浏览器当前窗口文档body的高度 alert($(document.body).outerHeight(true));//浏览器当前窗口文档body的总高度 包括border padding margin alert($(window).width()); //浏览... 阅读全文