<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="robots" content="all">
<meta name="format-detection" content="telephone=no" />
<style type="text/css">
*{padding: 0;margin: 0;}
html,body{width:100%;height: 100%;font-family: "Microsoft YaHei"; position: relative;}
.banner{height:230px;width: 414px;background: red}
</style>
<script type="text/javascript"> //var num=$(window).width();
var num= window.innerWidth;
var font=num/10;
document.getElementsByTagName('html')[0].style.fontSize=font+'px'
//$('html').css('font-size',font+'px');
/* window.onresize=function(){
num=$(window).width();
font=num/10;
$('html').css('font-size',font+'px');
} */
</script>
<title>平台</title>
</head>
<body>
<div class="banner">
</div>
<script type="text/javascript">
var html=$('html').html();
var remhtml=html.replace(/(\d+)px/g, function(a,b){
console.log(b)
var num=b/41.4+"";
console.log(num)
return num.substring(0, 5)+"rem";
})
console.log(remhtml);
</script>
</body>
</html>

  

最新文章

  1. Python&gt;&gt;&gt;使用Python和Pygame创建画板
  2. FineReport层式报表解决大数据集展示问题攻略
  3. make:cc 命令未找到的解决方法
  4. 【原创】Silverlight客户端发起WebRequest请求分析
  5. poj 1087 最大流
  6. 如何通过源码生成Gatling可执行工具
  7. python下载时报错 Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time
  8. 实验楼-4-Linux文件权限
  9. codeforces 887A Div. 64 思维 模拟
  10. [BJOI2019] 光线
  11. 剑指offer数组3
  12. 开源项目商业模式分析(2) - 持续维护的重要性 - Selenium和WatiN
  13. 如何配置Java环境变量[转]
  14. 利用springloaded进行java jar&amp;class的动态替换
  15. 第一次Spring总结
  16. day6 六、元组、字典、集合的基本操作和内置方法
  17. Memcached使用与纠错(附代码和相关dll)
  18. Linux yum源详解
  19. SQL Server中float转字符串进度丢失
  20. thinkCMF----如何写标签

热门文章

  1. 使用max函数计算EXCEL个税公式
  2. C语言程序运行
  3. Linux - NodeJS安装
  4. NodeJS基础入门-Event
  5. ccf 201712-2 游戏(Python实现)
  6. MySQL查询时,查询结果如何按照where in数组排序
  7. 《零基础入门学习Python》【第一版】视频课后答案第001讲
  8. LeetCode(219) Contains Duplicate II
  9. stm32L0系列学习(一)
  10. C++中重载、覆盖和隐藏的区别,以及适用场景