禁止X5内核浏览器自动调整文本大小

This commit is contained in:
zhangxiaozhuozhuo 2024-03-25 09:40:27 +08:00
parent 1ec0c9c467
commit 2e01cb6d2e
3 changed files with 27 additions and 20 deletions

View File

@ -3,9 +3,10 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<!-- <meta name="viewport" content="width=device-width,initial-scale=1.0"> -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
<title>“开创”系列军事需求解决方案创意征集行动</title>
</head>
<body>
<noscript>

View File

@ -1,19 +1,19 @@
<template>
<div id="app">
<!-- <img alt="Vue logo" src="./assets/logo.png"> -->
<HomePage msg="Welcome to Your Vue.js App"/>
<HomePage msg="" />
</div>
</template>
<script>
import HomePage from './components/HomePage.vue'
import HomePage from "./components/HomePage.vue";
export default {
name: 'App',
name: "App",
components: {
HomePage
}
}
HomePage,
},
};
</script>
<style>
@ -24,8 +24,11 @@ export default {
text-align: center;
color: #2c3e50;
}
html, body {
html,
body {
margin: 0;
padding: 0;
-webkit-text-size-adjust: none;
text-size-adjust: none;
}
</style>

View File

@ -8,6 +8,9 @@
<li><a href="https://www.osredm.com">首页</a></li>
<li><a href="https://www.osredm.com/explore/all">开源项目</a></li>
<li><a href="https://www.osredm.com/task">创客空间</a></li>
<li><a href="https://fc.osredm.com/competitions">开放竞赛</a></li>
<li><a href="https://fc.osredm.com/forums">论坛交流</a></li>
<li><a href="https://www.osredm.com/notice">公告</a></li>
</ul>
<!-- 标题 -->
<div class="logo-and-title">
@ -182,7 +185,7 @@ export default {
list-style-type: none;
margin: 0px;
padding: 0px;
width: 450px;
width: 750px;
height: 75px;
display: flex;
justify-content: space-between;
@ -548,7 +551,7 @@ export default {
list-style-type: none;
margin: 0px;
padding: 0px;
width: 40vw;
width: 54vw;
height: 5.1vw;
display: flex;
justify-content: space-between;