duandanai6470 2017-09-12 11:06
浏览 733
已采纳

css媒体查询在谷歌浏览器上无法正常工作

I am working on creating my website in php from a week or more all my media queries working properly as defined... @media screen and (max-width: 768px) @media screen and (max-width: 600px) ...But suddenly chrome stopped working properly and showing contents of 768px on the width of 960px, and on 750px instead of 600px. I have refreshed chrome again and again even cache, but no result. But EADGE is working fine. Is there any problem with chrome refreshing frequently during developing website or something else? Kindly help me in this weird situation.

@media screen and (max-width: 900px) { 
.side-btn{
    font-size: 100%;
    margin: 4px 5px;
    padding: 3% 3%;
}
}
@media screen and (max-width: 768px){
.nav1 ul li{
    clear: both; 
    width: 100%;
    border-right: none;     
    border-bottom: 1px solid grey;      
}
.nav2 {     display: block; }
.navul{     display: none;  }

}
@media screen and (max-width: 600px) {
.startmenu,.itemhead{   font-size: 100%;}
.side-btn{
    font-size: 80%;
    margin: 4px 3%;
    padding: 3% 3%;
}
.itbody{ height: 340px; }
.custom{
    margin-top: 3px;        
    width: 100%; 
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.inqbasket{
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 3px;
}
.ifcol1{    width: 100%;    }
.ifcol2{    width: 100%;    }

}
  • 写回答

3条回答 默认 最新

  • duanguoyin7008 2017-09-12 12:43
    关注

    I have found the mistake I'am making is that I have zoomed out my chrome browser to 67% that was cause the problem of width scaling. Now everything is working fine when I backed to 100% zoom.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容