1) 居中显示窗体
function(jqueryObj,widthValue,heightValue) { var leftValue = ($(window).width() - widthValue) / 2; var topValue = ($(window).height() - heightValue) / 2; $(jqueryObj).css({"left":leftValue,"top":topValue}); };
1) 居中显示窗体
function(jqueryObj,widthValue,heightValue) { var leftValue = ($(window).width() - widthValue) / 2; var topValue = ($(window).height() - heightValue) / 2; $(jqueryObj).css({"left":leftValue,"top":topValue}); };