移动端 - 随笔记

时间:2014-05-28 22:35:21   收藏:0   阅读:320
bubuko.com,布布扣
1 <link rel="stylesheet" media="screen and (min-device-width : 320px) and (max-device-width: 480px)" href="iphone.css" />
2 <link rel="stylesheet" media="screen and (min-device-width : 768px) and (max-device-width : 1024px)" href="ipad.css" />
3 media对各种设备的判断,分离css文件,易于维护
bubuko.com,布布扣
bubuko.com,布布扣
1 viewport设置
2 <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
bubuko.com,布布扣

 

移动端 - 随笔记,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!