移动端 - 随笔记
时间:2014-05-28 22:35:21
收藏:0
阅读:320
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文件,易于维护
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">
评论(0)