저는 반응 형 웹 디자인에 익숙하지 않고 사용하려는 미디어 쿼리 및 대상 장치에 대한 다양한 환경 설정이 혼란 스럽습니다. 표준이 있습니까? iphone, ipads 및 인기있는 기기를 타겟팅하고 싶습니다. '나는 아이폰 시뮬레이터를 실행하고, CSS를 didn를하기 때문에 내가 아이폰 4를 대상으로하는 규칙을 모르는,미디어 쿼리와 함께 사용해야하는 장치/권장 크기는 어느 것입니까?
/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen and (min-width : 321px) {
/* Styles */
}
/* Smartphones (portrait) ----------- */
@media only screen and (max-width : 320px) {
/* Styles */
}
/* iPads (portrait and landscape) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
/* Styles */
}
/* iPads (landscape) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) {
/* Styles */
}
/* iPads (portrait) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) {
/* Styles */
}
/* Desktops and laptops ----------- */
@media only screen and (min-width : 1224px) {
/* Styles */
}
/* Large screens ----------- */
@media only screen and (min-width : 1824px) {
/* Styles */
}
/* iPhone 4 and high pixel ratio devices ----------- */
@media
only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5) {
/* Styles */
}
하지만 오래된 나도 몰라 :
나는 웹에서 이걸 발견했다 (마지막 CSS 규칙 참조) t 작업
감사