响应式设计

第一步:

 
 
  1. <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
IE8或者更早的浏览器并不支持Media Query。你可以使用media-queries.js或者respond.js来为IE添加Media Query支持。

 
 
  1. <!--[if lt IE 9]>    
  2.     <script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>    
  3. <![endif]-->  

UNDERSTAND HTML5 TAGS

1
2
3
<!--[if lt IE 9 ]>
    <script src= "http://html5shim.googlecode.com/svn/trunk/html5.js" ></script>
<![endif]-->


第二步:

在做布局前要想清楚不同的尺寸显示的样式,尽量方便于更改移动端的设计。


第三步:

使用 @media


check:

www.responsinator.com


GENERAL SIZE:

  • iPhone 3+4 portrait 320 x 480
  • iPhone 3+4 landscape 480 x 320
  • iPhone 5 portrait 320 x 568
  • iPhone 5 landscape 568 x 320
  • Android portrait 240 x 320
  • Android landscape 320 x 240
  • Android (Samsung Galaxy) portrait 380 by 685 (equivalent desktop resolution)
  • Android (Samsung Galaxy) landscape 685 by 380 (equivalent desktop resolution)
  • iPad portrait 768 x 1024
  • iPad landscape 1024 x 768
  • Kindle portrait 600 x 1024
  • Kindle landscape 1024 x 600








  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值