@media screen and (min-width: 360px) and (max-width: 375px){
.ejiao_description .form form p{
margin-bottom: 11px;
}
}
The media query in css is written like this
js
var screen1 = window.matchMedia('@media (min-width: 360px) and (max-width: 375px)');
if (screen1.matches){
XXXXXX.....
}
else{
XXXX....
}
But it doesn’t work now. What’s wrong?
Please see the documentation
is
window.matchMedia('(min-width: 360px) and (max-width: 375px)');
, no@media