media每天变换改变宽度 Gary Wang 2022-08-11 前端 css media demo@media mediatype and|not|only (media feature) { CSS-Code;} 123456789101112131415161718/*如果文档宽度小于 300 像素则修改背景颜色*/@media screen and (max-width: 300px) { body { background-color:lightblue; }}@media only screen and (max-width: 500px) { .gridmenu { width:100%; } .gridmain { width:100%; } .gridright { width:100%; }} //