摘要:
没事瞎写点东西..写了个div垂直居中页面中的代码.$(document).ready(function(){ jQuery.fn.center = function(){ var width = parseInt(($(window).width() - $(this).width() ) / 2 + $(window).scrollLeft()), height = parseInt(($(window).height() - $(this).height()) / 2 +$(window).scrollTop()); $(this).css({ left... 阅读全文