6
iPhone 11
/* 1792x828px at 326ppi */
@media only screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) {
}
This media query is also for: iPhone XR
iPhone 11 Pro
/* 2436x1125px at 458ppi */
@media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
}
This media query is also for: iPhone X and iPhone Xs
iPhone 11 Pro Max
/* 2688x1242px at 458ppi */
@media only screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) {
}
This media query is also for: iPhone Xs Max
Device orientation
To add landscape or portrait orientation, use the following code:
For portrait:
and (orientation : portrait)
For landscape:
and (orientation : landscape)
반응형
'Librarys > 모바일' 카테고리의 다른 글
Galaxy Foldable 폴더폰 해상도 (Viewport) (0) | 2021.12.13 |
---|---|
[IOS] safari에서 확대 축소 막기 (0) | 2020.10.22 |
터치 이벤트처리 (0) | 2020.09.25 |
모바일웹 브라우저 해상도사이즈 상세 (0) | 2020.09.08 |
아이폰5 (테스트 버전 ios8.4) 미지원 (0) | 2019.12.10 |
Device Media Queries (0) | 2019.10.17 |