本身编写jquery插件

http://blog.csdn.net/chenxi1025/article/details/52222327css

http://www.javashuo.com/article/p-mivsmfqj-n.htmlhtml

jQuery.fn.center = function () {
     this.css("top", ( $("body").height() - this.outerHeight() ) / 2+$(window).scrollTop() + "px");
     return this;
}this

$(".hint").center();.net

http://jsbin.com/fagugisiqi/edit?html,js,outputhtm

相关文章
相关标签/搜索