摘要: 1、viewport 简单粗暴的方式: 直接设置viewport为320px的1.3倍,将页面放大1.3倍。 为什么是1.3? 目前大部分页面都是以320px为基准的布局,而iphone6的宽度比是375/320 = 1.171875,iphone6+则是 414/320 = 1.29375那么以1 阅读全文
posted @ 2018-05-18 15:26 liutao3253 阅读(905) 评论(0) 推荐(0)
摘要: 源码链接:http://runjs.cn/code/hmevb9gs 阅读全文
posted @ 2017-11-08 16:19 liutao3253 阅读(2841) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-11-07 19:22 liutao3253 阅读(97) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> </head> <body> </body> </html> <script> // 当在函数中使用一个变量的时候,首先在本函数内部查找该变量,如果找不到则找其父级函数, / 阅读全文
posted @ 2017-10-19 21:37 liutao3253 阅读(149) 评论(0) 推荐(0)