CSS 设备媒体查询(最全版本)

这篇博客详细列举了各种设备的CSS媒体查询,包括iPhone 4到iPhone 12 Pro Max,Samsung Galaxy系列,iPad,Apple Watch以及不同尺寸的平板和桌面设备。通过这些查询,开发者可以精确地为不同设备优化网页布局。
摘要由CSDN通过智能技术生成

Phones

Portrait and landscape phones

@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 480px)

Landscape phones

@media only screen 
  and (min-width: 321px)

Portrait phones

@media only screen 
  and (max-width: 320px)

iPhone 4 and iPhone 4S

Portrait and landscape iPhone 4 and iPhone 4S

@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 480px) 
  and (-webkit-min-device-pixel-ratio: 2)

Portrait iPhone 4 and iPhone 4S

@media only screen  
  and (min-device-width: 320px) 
  and (max-device-width: 480px) 
  and (-webkit-min-device-pixel-ratio: 2) 
  and (orientation: portrait)

Landscape iPhone 4 and iPhone 4S

@media only screen  
  and (min-device-width: 320px) 
  and (max-device-width: 480px) 
  and (-webkit-min-device-pixel-ratio: 2) 
  and (orientation: landscape)

iPhone 5 and iPhone 5S

Portrait and landscape iPhone 5 and iPhone 5S

@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 568px) 
  and (-webkit-min-device-pixel-ratio: 2)

Portrait iPhone 5 and iPhone 5S

@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 568px) 
  and (-webkit-min-device-pixel-ratio: 2) 
  and (orientation: portrait)

Landscape iPhone 5 and iPhone 5S

@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 568px) 
  and (-webkit-min-device-pixel-ratio: 2) 
  and (orientation: landscape)

iPhone 6 and iPhone 6S

Portrait and landscape iPhone 6 and iPhone 6S

@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px) 
  and (-webkit-min-device-pixel-ratio: 2)

Portrait iPhone 6 and iPhone 6S

@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px) 
  and (-webkit-min-device-pixel-ratio: 2) 
  and (orientation: portrait)

Landscape iPhone 6 and iPhone 6S

@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px) 
  and (-webkit-min-device-pixel-ratio: 2) 
  and (orientation: landscape)

iPhone 6 Plus and iPhone 6S Plus

Portrait and landscape iPhone 6 Plus and iPhone 6S Plus

@media only screen 
  and (min-device-width: 414px) 
  and (max-devic
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值