增加手机自适应
This commit is contained in:
@@ -3,6 +3,13 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
||||
<script>
|
||||
(function () {
|
||||
if (window.matchMedia("(max-width: 640px), (hover: none) and (pointer: coarse)").matches) {
|
||||
document.documentElement.classList.add("matrix-lite");
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
<title>MATRIX · 接入</title>
|
||||
<link rel="stylesheet" href="/static/style.css" />
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user