feat: 更新 index.html 和样式文件,优化样式导入和结构
This commit is contained in:
28
index.html
28
index.html
@ -2,25 +2,25 @@
|
||||
<html lang="zh-CN" data-build-time="%VITE_BUILD_TIME%" data-commit="%VITE_BUILD_COMMIT%">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<link rel="icon" href="data:;base64,iVBORw0KGgo=" />
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=no"
|
||||
/>
|
||||
<meta name="format-detection" content="telephone=no" />
|
||||
<title>vue-ts-example</title>
|
||||
<link rel="stylesheet" href="https://testingcf.jsdelivr.net/npm/@unocss/reset/tailwind.min.css" />
|
||||
<script>
|
||||
function setAppHeight() {
|
||||
const app = document.getElementById('app');
|
||||
app.style.minHeight = `${window.innerHeight}px`;
|
||||
}
|
||||
|
||||
// window.addEventListener('resize', setAppHeight);
|
||||
// window.addEventListener('load', setAppHeight);
|
||||
</script>
|
||||
<style type="text/css">
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
font-weight: normal;
|
||||
}
|
||||
body {
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
margin: 0;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@ -55,10 +55,8 @@
|
||||
</div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
<script src="https://fastly.jsdelivr.net/npm/@vant/touch-emulator/dist/index.min.js"></script>
|
||||
<link rel="stylesheet" href="https://testingcf.jsdelivr.net/npm/nprogress/nprogress.css" />
|
||||
</body>
|
||||
<!-- TODO: use.typekit.net被墙 -->
|
||||
<!-- <script>
|
||||
<script>
|
||||
(function (d) {
|
||||
var config = {
|
||||
kitId: 'whk2tto',
|
||||
@ -87,5 +85,5 @@
|
||||
};
|
||||
s.parentNode.insertBefore(tk, s);
|
||||
})(document);
|
||||
</script> -->
|
||||
</script>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user