Media Queries firing at wrong width

前端 未结 8 941
抹茶落季
抹茶落季 2020-12-07 18:08

I am building a responsive page and the media queries are firing at the wrong width size. I am using Chrome.

@media screen and (max-width: 1200px) {
 .logo-p         


        
相关标签:
8条回答
  • 2020-12-07 19:07

    I also had some problems with media queries in Chrome.

    As soon as I toggled device toolbar, the scaling was just wrong. The following

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

    fixed this issue.

    0 讨论(0)
  • 2020-12-07 19:07

    None of these fixed my issue, but my problem, after being dumbfouded why a breakpoint was occuring at 1000px, was because I was using the react-responsive library and I still had a breakpoint set in some JSX component!

    0 讨论(0)
提交回复
热议问题