【问题标题】:min-width = 481 why [duplicate]最小宽度= 481为什么[重复]
【发布时间】:2013-03-15 07:48:11
【问题描述】:

我看到一些带有@media 的页面,它们的最小宽度设置为 481 像素。
为什么? 481 有什么用?
我认为 ipad 尺寸是 768*1024 .
谢谢。

    @media only screen and (device-width: 768px) {
  /* For general iPad layouts */
}

@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait) {
  /* For portrait layouts only */
}

@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape) {
  /* For landscape layouts only */
}

【问题讨论】:

  • 它的 iPhone ?那么我可以为 ipad 将最小宽度设置为 768 吗?

标签: ipad css media-queries


【解决方案1】:

这是因为人们还定义了智能手机的媒体查询。大部分时间都有宽度= 480px。

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

所以下一个更高的分辨率将是 min-device-width = 481px

希望这有助于了解更多信息,请查看http://css-tricks.com/snippets/css/media-queries-for-standard-devices/

【讨论】:

  • 481 适用于 iphone 我是正确的吗?我可以将 ipad 网站的最小宽度设置为 768 吗?
  • @user2207044 除了 iThings 之外还有其他设备。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-06-04
  • 1970-01-01
  • 2022-12-05
  • 2017-03-12
  • 1970-01-01
  • 2011-04-18
  • 1970-01-01
相关资源
最近更新 更多