将下列代码 复制到文件中
<head>
<meta name="format-detection" content="telephone=no" />
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- 我的报修 -->
<script>
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?22ec3b08702cbd547397b77861873cb5";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<main>
</main>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script type="text/javascript">
//REM自动适配器
window.addEventListener("onorientationchange" in window ? "orientationchange" : "resize", function () {
setTimeout(___resize, 200);
}, false);
function ___resize() {
var psd_w = 750, psd_h = 1077,//设计稿尺寸
max_w = 480, min_w = 320,//最大、最小屏幕尺寸范围
win_w = $(window).width(), win_h = $(window).height(),//浏览器尺寸
psd_sp = psd_w / psd_h, win_sp = win_w / win_h;
win_w = win_w > max_w ? max_w : win_w < min_w ? min_w : win_w;
$("html").css({
"fontSize": win_w / psd_w * 100 + "px"
});
}
$(window).resize(function () {
___resize();
});
___resize();
</script>