简体   繁体   中英

why @media only screen and (min-width: 768px) also apply for screen width less than 768px

The css for min-width 768 is not working properly in mobile. But same css is working properly in inpect mode for width less than 768 in chrome desktop browser.

@media only screen and (min-width: 768px){
#main {
    max-width: 75%;
    float: left;
}
}

But when I switch to mobile mode in inspect tool it's again not working properly.

在此处输入图像描述

I am trying to edit the blogger classic theme. link of the blog https://egadgetdeals.blogspot.com/2019/11/what-youll-build-in-part-1.html?m=1

The meta tag viewport to avoid zoom is missing, add this into the head tag:

<meta name="viewport" content="width=device-width, initial-scale=1">

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM