首页 > 其他 > 详细

浏览器适配屏幕分辨率问题

时间:2019-03-15 12:13:25      阅读:214      评论:0      收藏:0      [点我收藏+]
<script>
         var width=document.documentElement.clientWidth;
         var height=document.documentElement.clientHeight;
         console.log(width)
         console.log(height)
         var sacle=width/1920>height/1080?height/1080:width/1920;
         document.getElementsByTagName(body)[0].style.zoom=sacle;
</script>

浏览器适配屏幕分辨率问题

原文:https://www.cnblogs.com/liujiajiablog/p/10536134.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!