专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > HTML/CSS

页面元素同比例放大显示代码

发布时间: 文章来源:www.iduyao.cn 采编人员:天宇3  
页面元素同比例放大显示代码
<script type="text/javascript">
var iwidth = window.screen.width; 
if (iwidth <= 1200) { } 
else if
(iwidth > 1200 && iwidth < 1366) { document.write('<style type="text/css">body {transform:scale(1.10);}</style>'); } 
else if
(iwidth >= 1366 && iwidth <= 1920) { document.write('<style type="text/css">body {transform:scale(1.25);}</style>'); } 
else
{ document.write('<style type="text/css">body {transform:scale(1.50);}</style>'); } 
document.write('<style type="text/css">body {transform-origin:center top;overflow-x:hidden;}</style>');
</script>
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。
   495阅读
目前尚无回复
登录 后发表评论

热门分类: