日期:2014-05-17 浏览次数:20881 次
<script> var _width = screen.width; var _height = screen.height; var div_top = _height/2 - document.getElementById("divID").height / 2; var div_left = _width/2 - document.getElementById("divID").width / 2 </script>