html5 - Responsive WEB, media query issues.
漂亮男人
漂亮男人 2017-07-03 11:41:25
0
1
1373
@media screen and (max-width:768px){
    body{
        background: lightgreen;
        .content{
            width: 700px;
            height: 1004px;
        }
    }
    
}


@media screen and (min-width:768px) and (max-width:1200px){
    body{
        background: lightgreen;
        .content{
            width: 1060px;
            height: 1900px;
        }
    }
}

Regarding these two media queries, I would like to ask if a device width is exactly 768px, then which media query is applicable to it, or the second media query can be expressed as (x>=768&&x<1200???). Also, is there any order for these two media inquiries?

漂亮男人
漂亮男人

reply all(1)
给我你的怀抱

Yes, both will match, according to normal stacking rules, that is, the one below covers the one above.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!