@media screen and (min-width:600px) and (max-width:900px){
body {
overflow-x: hidden;
}
}
/* 電腦端-筆記本 */
@media screen and (min-width:960px) and (max-width:1366px){
body {
overflow-x: hidden;
}
}
/* 電腦端-顯示器 */
@media screen and (min-width:1366px) and (max-width:1920px){
body {
overflow-x: hidden;
}
}
橫屏和豎屏
/* 豎屏*/
@media only screen and (orientation: portrait) {
body {
background-color: lightblue;
}
}
/* 橫屏*/
@media only screen and (orientation: landscape) {
body {
background-color: lightblue;
}
}