21
24

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CSSデバイス別サイズ

Posted at

いつも忘れるのでこちらでメモしておきます。

iOS
■ iPhone 5
@media only screen and (min-device-width:320px) and (max-device-width:568px) {
  //CSS記述
}

■ iPhone 6
@media only screen and (min-device-width:375px) and (max-device-width:667px) {
  //CSS記述
}

■ iPhone 6 Plus
@media only screen and (min-device-width:414px) and (max-device-width:736px) {
  //CSS記述
}

■ iPad
@media only screen and (min-device-width:768px) and (max-device-width:1024px) {
  //CSS記述
}

■ iPad縦向き
@media only screen and (min-device-width:768px) and (max-device-width:1024px) and (orientation:portrait) {
  //CSS記述
}

■ iPad横向き
@media only screen and (min-device-width:768px) and (max-device-width:1024px) and (orientation:landscape) {
  //CSS記述
}


21
24
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
21
24

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?