标签:
var topOffset = ($(window).height() - 175) / 2,
var leftOffset = ($(window).width() - $(‘loading‘).width()) / 2 - 60;
$(‘.loading‘).css({
top: topOffset,
left: leftOffset,
right: ‘auto‘,
bottom: ‘auto‘
});
标签:
原文地址:http://www.cnblogs.com/zhouyx/p/4736979.html