<meta name="viewport" content="width=device-width, initial-scale=1" />

user-scalable=no 를 사용하면 저시력과 같은 시각 장애를 가진 사용자의 접근성 문제가 발생할 수 있다.
@media media-type and (media-feature-rule) {
/* CSS rules go here */
}

@media screen and (max-width: 600px) {
body {
color: blue;
}
}
/*뷰포트가 600px 이하인 경우 적용이 된다.*/
@media screen and (min-width: 600px) {
body {
color: red;
}
}
/*뷰포트가 600px 이상인 경우 적용이 된다.*/
@media (orientation: portrait) { /* (너비 <= 높이)인 화면에서 적용 (세로모드) */ }
@media (orientation: landscape) { /* (너비 > 높이)인 화면에서 적용 (가로모드) */ }
@media (orientation: portrait) {
body {
color: blue;
}
}
@media (orientation: landscape) {
body {
color: red;
}
}
@media screen and (min-width: 600px) and (orientation: landscape) {
body {
color: blue;
}
}
/*여기서 텍스트가 파란색이 되는 유일한 경우는
뷰포트의 너비가 최소 600픽셀 이상이고 장치가 가로 모드인 경우에만 해당*/
@media screen and (min-width: 600px), screen and (orientation: landscape) {
body {
color: blue;
}
}
/*여기서 텍스트가 파란색이 되는 경우는
뷰포트의 너비가 최소 600픽셀 이상 또는 장치가 가로 모드인 경우에 해당*/
출처
https://developer.mozilla.org/ko/docs/Learn_web_development/Core/CSS_layout/Media_queries
https://www.youtube.com/watch?v=RyHyLcYC7Ow&list=PL-eeIUD86IjTH1qT8qdHXDm-FfOnm7a_U&index=26