</head>
<style type="text/css">
#a p{
font-size: 0.16rem;
}
</style>
<body>
<div id="a">
<p>按时大大大</p>
</div>
<script type="text/javascript">
var bw = (document.documentElement.clientWidth/7.5)+"px";
var htmlTag = document.getElementsByTagName("html")[0];
htmlTag.style.fontSize=bw;
</script>
</body>
简洁版750设计稿JS自适应
最新推荐文章于 2021-05-19 16:54:58 发布