
1,设置Div居中
<div id="Layer1" style="position:absolute; left:expression((document.body.offsetWidth-200)/2); top:expression((document.body.offsetHeight-100)/2); width:200; height:100; background:red; z-index:1"></div>

转载于:https://www.cnblogs.com/wj110reg/articles/883914.html