`

窗体居中显示

 
阅读更多

1) 居中显示窗体

 

function(jqueryObj,widthValue,heightValue) {
	var leftValue = ($(window).width() - widthValue) / 2;
	var topValue = ($(window).height() - heightValue) / 2;
	$(jqueryObj).css({"left":leftValue,"top":topValue});
};

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics