- main.style.left = (screen_size[0] - width) / 2 + "px";
- main.style.top = (screen_size[1] - height) / 2 + "px";
- main.style.width = width + "px";
- main.style.height = height + "px";
- main.style.lineHeight = height + "px";
+ main.style.left = (((screen_size[0] - width) / 2) / dpr) + "px";
+ main.style.top = (((screen_size[1] - height) / 2) / dpr) + "px";
+ main.style.width = (width / dpr) + "px";
+ main.style.height = (height / dpr) + "px";
+ main.style.lineHeight = (height / dpr) + "px";