css3 媒体查询

用法:

max-width 为最大宽度,当窗口在这个最大宽度之内时 进行样式设置,else ***

@media screen and (max- 300px) {
    body {
        background-color:#ccc;
    }
}

  

原文地址:https://www.cnblogs.com/sunday123/p/10829819.html