issue with CSS media queries(scrollbar)

前端 未结 7 1483
别那么骄傲
别那么骄傲 2020-11-27 06:28

I am having problem with css media query in Firefox. It works correct in Chrome like I made two DIVs and want a scrollbar. If I decrease the screen size of firefox upto 800p

7条回答
  •  余生分开走
    2020-11-27 06:54

    Play safe!

    My final strategy is added 20px to the media queries and that is my default white space on the layout.

    With one exception: @media (min-width: 320px) At that size a don't leave the 20px white space and include one more rule to solve minor background issues:

    html body {
        min-width: 320px;
       }
    

    20px is the scroll bar default width size.

    FYI: https://www.sitepoint.com/rwd-scrollbars-is-chrome-better/

提交回复
热议问题