响应式布局

*在320分辨率下*/
    #home{
        a{
            .box();
            -webkit-box-pack:center;
            -webkit-box-align:center;
            margin-top:10px;
            img{
                width:300px;
                height:auto;
            }
        }
    }
/*在680-900分辨率下 img宽度320px*/
@media screen and (min-width:680px) and (max-width:900px){
    #home{
        a{
            width:50%;
            float:left;
            img{
                width:320px;
            }
        }
    }
}
/*在975分辨率下 img宽度325px*/
@media screen and (min-width:975px){
    #home{
        a{
            width:33%;
            float:left;
            img{
                width:325px;
            }
        }
    }
}
:
@media screen and (min-width:680px) and (max-width:900px){
:
@media screen and (min-width:975px){
    #home{

posted @ 2016-08-14 19:19  果子味的橘子  阅读(90)  评论(0编辑  收藏  举报