摘要: 没事瞎写点东西..写了个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... 阅读全文
posted @ 2012-06-26 11:00 allexwang 阅读(700) 评论(2) 推荐(0) 编辑