@media screen and (min-width: 360px) and (max-width: 375px){
.ejiao_description .form form p{
margin-bottom: 11px;
}
}
css中媒體查詢是這麼寫的
js
var screen1 = window.matchMedia('@media (min-width: 360px) and (max-width: 375px)');
if (screen1.matches){
XXXXXX.....
}
else{
XXXX....
}
但是現在沒起作用 請問哪裡錯了麼
請看文件
為
window.matchMedia('(min-width: 360px) and (max-width: 375px)');
,沒@media