/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
body { margin: 100px; }
}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
body { margin: 20px; }
}
1条答案
按热度按时间z9smfwbn1#
您需要管理它以响应屏幕大小。查看以下链接很有用:https://www.w3schools.com/css/tryit.asp?filename=tryresponsive_mediaquery_breakpoints