bug in chrome with media queries

核能气质少年 提交于 2021-01-27 15:50:56

问题


I have a wierd problem with media queries in chrome

I added transition to some elements in my page and created for example 3 states of media queries

when I resize the browser and change the state of media query my elements change size with animation, it's okey and perfect but when I try to keep the size of the browser exactly in the edge of media queries or very close to it my elements quirks and shake, sometimes slow down my page speed like slow motion when I drop the resize, the main problem is when I refresh in that size the page run with that bug

I checked my media queries area

It is :

@media all and (min-width: 1500px)

@media all and (min-width : 1300px) and (max-with: 1499px)

and ...

also I written some css code for those area that media queries didnt cover so my code seems to be correct, it something about chrome or a trick about transition and media queries

for example when I exit 1500px and enter to 1499 it's okey but when I try to close the size of the browser to 1500 and consecutive change to 1499 and 1500 my elements confuse, there is no problem when I remove the transtion

I UNDERSTAND the possibility of that behavior is very low but i want to fix it.


回答1:


You misspelled the second word width in @media all and (min-width : 1300px) and (max-with: 1499px)



来源:https://stackoverflow.com/questions/18285456/bug-in-chrome-with-media-queries

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!