各位大佬,下图中这个问题咋解决呀,还请各位大佬帮忙看下,多谢了
源码如下:
<!DOCTYPE html>
<html><head>
<meta charset=“utf-8”>
<meta name=“viewport” content=“width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no”>
<title>验证</title>
<base id=“baseURL” href=“http://www.helloworld.test/”>
<script>
(function (doc, win) {
//设置html的fontsize
//console.log(doc.documentElement);
var docEl = doc.documentElement,
resizeEvt = ‘orientationchange’ in window ? ‘orientationchange’ : ‘resize’,
recalc = function () {
var clientWidth = docEl.clientWidth;
if (!clientWidth) return;
var size;
if (clientWidth > 450) {
size = 100 * (clientWidth / 2000) + ‘px’;
} else {
size = 100 * (clientWidth / 750) + ‘px’;
}
//console.log(size);
docEl.style.fontSize = size;
};
if (!doc.addEventListener) return;
win.addEventListener(resizeEvt, recalc, false);
doc.addEventListener(‘DOMContentLoaded’, recalc, true);
})(document, window);
</script>
<link href="/Content/Site.css" rel=“stylesheet”>
<script src="/Scripts/common.js?v=3"></script>
</head>
<body oncontextmenu=“return false” onselectstart=“return false” oncopy=“return false;”>
<div style=“text-align: center;font-size: .4rem;”>
<form action=“http://www.helloworld.test//Binding/PostBinding” method=“post” style=“font-size: .5rem;”>
代号
<input id=“UserId” type=“text” name=“UserId”><br>
<input type=“submit” name=“BtnSave” value=“提交” style=“width: 2rem; height: .7rem;margin-top: .2rem;”>
</form>
<div style=“margin-top: .6rem;”><span>欢迎来到人类新世界</span></div>
<img style=“width: 80%;” src="/Content/image/weixin.jpg"><br>
<a href=“http://www.helloworld.test//test.docx”>说明文档</a>
</div>
<div><span style=“font-size: .4rem; display: block;”>打开新世界,开启新时代</span></div>
</body></html>