金币系统前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

46 lines
1.3 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta
name="viewport"
content="width=device-width, initial-scale=0.9, maximum-scale=0.9, minimum-scale=0.9"
/>
<title>财务金币管理系统</title>
<style>
html,
body,
#app {
height: 100%;
margin: 0;
padding: 0;
}
</style>
<script>
window.onload = function () {
// 获取浏览器的缩放比例
const browserZoom =
(window.devicePixelRatio / window.screen.availWidth) *
window.innerWidth;
if (browserZoom !== 0.9) {
if (typeof document.documentElement.style.zoom === "string") {
// 支持 zoom 属性的浏览器(如 IE)
document.body.style.zoom = 0.9;
} else {
// 不支持 zoom 属性的浏览器,使用 transform
document.body.style.transform = "scale(0.9)";
document.body.style.transformOrigin = "top left";
document.body.style.width = "111.11%";
document.body.style.height = "111.11%";
}
}
};
</script>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>