- iOS Safari 聚焦字号小于 16px 的输入框时会放大整个页面,且忽略 viewport 的 user-scalable=no / maximum-scale,只能靠字号规避 - 该规则只在 max-width:600px 生效,1440 桌面端仍是 14px 不变 - viewport 补 maximum-scale=1 作为其他浏览器的兜底
15 lines
432 B
HTML
15 lines
432 B
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<link rel="icon" href="/asserts/favicon.ico" />
|
|
<link rel="stylesheet" href="/src/reset.css" type="text/css">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
<title>LionWebsite</title>
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
<script type="module" src="/src/main.js"></script>
|
|
</body>
|
|
</html>
|