我正在一个 CSS 看起来非常混乱的网站上工作。
我注意到的第一件事是媒体查询按以下混乱的顺序排列……这肯定是错的吗?重组成正确的顺序是否明智?如果没有大量的工作,这可能吗?我想避免尽可能多的重复,那么这将是正确的顺序,我可以消除其中一些断点吗?
@media screen and (max-width:997px)
@media screen and (min-width:674px) and (max-width:997px)
@media screen and (max-width:997px)
@media screen and (min-width:998px)
@media screen and (max-width:768px)
@media only screen and (min-width: 998px)
@media only screen and (max-width: 997px) and (min-width: 674px)
@media only screen and (max-width: 673px)
@media print
@media only screen and (max-width: 997px)
@media only screen and (max-width: 768px)
@media only screen and (min-width: 769px) and (max-width: 997px)
@media only screen and (min-width: 674px) and (max-width: 997px)
@media only screen and (max-width: 673px)
@media only screen and (min-width: 998px)
@media only screen and (min-width: 674px) and (max-width: 997px)
@media only screen and (max-width: 673px)
@media only screen and (max-width: 551px)
@media only screen and (max-width: 440px)
@media only screen and (max-width: 380px)
@media screen and (max-width:997px)