会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
寒xiao纪
博客园
|
首页
|
新随笔
|
新文章
|
联系
|
订阅
|
管理
2015年11月21日
重写toFixed
摘要: 重写了toFixedNumber.prototype.toFixed = function(c){ var self = this, re = Math.round(self * Math.pow(10,c)) / Math.pow(10,c) + ""; if( c=...
阅读全文
posted @ 2015-11-21 11:32 寒xiao纪
阅读(378)
评论(0)
推荐(0)
编辑
H5页面自适应
摘要: 对于一些带底图跟文字的H5页面要求自适应的,发现一些网站是这么干的document.documentElement.style.fontSize =document.body.clientWidth / 320 + "px";页面中的元素在设置字号及大小时候,使用rem即可。如 设计图上页面宽度为3...
阅读全文
posted @ 2015-11-21 10:50 寒xiao纪
阅读(1614)
评论(0)
推荐(0)
编辑
公告