var yPosition =(screen.height-页面高度)/2 var xPosition =(screen.width.-页面宽度)/2 top =yPosition left = xPosition