HTML CSS 미디어 쿼리의 해상도 처리
페이지 정보
본문
주로 사용하는 style
@media only screen
and (max-width : 320px) {
}
@media only screen
and (min-device-width : 321px)
and (max-device-width : 767px) {
}
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px) {
}
@media only screen
and (min-width : 1025px) {
}
그외 다양한 사이즈
<style>
/* Smartphones (portrait and landscape) */
@media only screen
and (min-device-width : 320px) {
/* 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 */
@media
only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5) {
/* Styles */
}
</style>
관련자료
http://www.walterz.net/2017/07/25/jquery-미디어-쿼리-반응형-웹-개발/
http://blog.saltfactory.net/using-css-media-query-for-responsive-web/
@media only screen
and (max-width : 320px) {
}
@media only screen
and (min-device-width : 321px)
and (max-device-width : 767px) {
}
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px) {
}
@media only screen
and (min-width : 1025px) {
}
그외 다양한 사이즈
<style>
/* Smartphones (portrait and landscape) */
@media only screen
and (min-device-width : 320px) {
/* 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 */
@media
only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5) {
/* Styles */
}
</style>
관련자료
http://www.walterz.net/2017/07/25/jquery-미디어-쿼리-반응형-웹-개발/
http://blog.saltfactory.net/using-css-media-query-for-responsive-web/
댓글목록
등록된 댓글이 없습니다.