摘要: 用rem来实现移动端的弹性布局是个好主意!用法如下: CSS @media only screen and (max-width: 320px), only screen and (max-device-width:320px) { html { font-size:10px; } } @media 阅读全文
posted @ 2017-02-15 22:56 不再犯错 阅读(5358) 评论(0) 推荐(0)
摘要: 方法一:<script> (function (doc, win) { var docEl = doc.documentElement, resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize', recal 阅读全文
posted @ 2017-02-15 22:52 不再犯错 阅读(1173) 评论(0) 推荐(0)