- 想通过js判断css的媒体查询出错
-
聚码交流
-
0
1

- yhuxAvNbtxUM
0000-00-00 00:00:00
- 回帖
@mediascreenand(min-width:360px)and(max-width:375px){.ejiao_description.formformp{margin-bottom:11px;}}css中媒体查询是这么写的jsvarscreen1=window.matchMedia('@media(min-width:360px)and(max-width:375px)');if(screen1.matches){XXXXXX.....}else{XXXX....}但是现在没起作用请问哪里错了么