1 Star 0 Fork 0

Thyiad/pt-vite

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.html 2.06 KB
一键复制 编辑 原始数据 按行查看 历史
Thyiad 提交于 2021-02-04 15:39 +08:00 . feat: fix rem
<!DOCTYPE html>
<html lang="en">
<head>
<link type="image/x-icon" rel="shortcut icon" href="//www.thyiad.top/logo.png" />
<meta charset="utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta
name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0,viewport-fit=cover"
/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<meta name="screen-orientation" content="portrait" />
<meta name="full-screen" content="yes" />
<meta name="browsermode" content="application" />
<meta name="x5-orientation" content="portrait" />
<meta name="x5-fullscreen" content="true" />
<title></title>
<!-- <script>(function(designWidth,maxWidth){var doc=document,win=window,docEl=doc.documentElement,tid;function refreshRem(){var width=docEl.getBoundingClientRect().width;maxWidth=maxWidth||540;width>maxWidth&&(width=maxWidth);var rem=(width*100)/designWidth;docEl.style.fontSize=rem+'px';var actualSize=parseFloat(window.getComputedStyle(document.documentElement)['font-size']);if(actualSize!==rem&&actualSize>0&&Math.abs(actualSize-rem)>1){var remScaled=actualSize>rem?rem*actualSize/rem:rem*actualSize/rem;docEl.style.fontSize=remScaled+'px'}}refreshRem();win.addEventListener('resize',function(){clearTimeout(tid);tid=setTimeout(refreshRem,300)},false,);win.addEventListener('pageshow',function(e){if(e.persisted){clearTimeout(tid);tid=setTimeout(refreshRem,300)}},false,);if(doc.readyState==='complete'){doc.body.style.fontSize='16px'}else{doc.addEventListener('DOMContentLoaded',function(e){doc.body.style.fontSize='16px'},false,)}})(750,750);</script> -->
<script>window.global = window.globalThis;</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/app.tsx"></script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/Thyiad/pt-vite.git
git@gitee.com:Thyiad/pt-vite.git
Thyiad
pt-vite
pt-vite
master

搜索帮助