유형1>
유형2>
1.
<link rel=
"stylesheet"
href=
"smartphone.css"
media=
"only screen and (min-device-width : 320px) and (max-device-width : 480px)"
>
2.
<link rel=
"stylesheet"
href=
"smartphone-landscape.css"
media=
"only screen and (min-width : 321px)"
>
3.
<link rel=
"stylesheet"
href=
"smartphone-portrait.css"
media=
"only screen and (max-width : 320px)"
>
4.
<link rel=
"stylesheet"
href=
"ipad.css"
media=
"only screen and (min-device-width : 768px) and (max-device-width : 1024px)"
>
5.
<link rel=
"stylesheet"
href=
"ipad-landscape.css"
media=
"only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape)"
>
6.
<link rel=
"stylesheet"
href=
"ipad-portrait.css"
media=
"only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait)"
>
7.
<link rel=
"stylesheet"
href=
"widescreen.css"
media=
"only screen and (min-width : 1824px)"
>
8.
<link rel=
"stylesheet"
href=
"iphone4.css"
media=
"only screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5)"
>
유형2>
1.
#page {width:100%;height:100%;background-color:#666;}
2.
3.
@media (max-width:1024px) {
4.
#page {background-color:#fff;}
5.
}
6.
@media (max-width:509px) {
7.
#page {background-color:#ff0;}
8.
}
'web standard > mobile' 카테고리의 다른 글
모바일웹사이트 제작시 고려사항 (0) | 2010.12.02 |
---|---|
뷰포트(VIEWPORT) (0) | 2010.11.30 |
모바일 웹사이트 제작 전 알아두면 좋은 10가지 (0) | 2010.10.26 |
iphone 메타 태그 관련 (0) | 2010.10.26 |
Web App 개발 (0) | 2010.09.07 |