@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....
}
但是现在没起作用 请问哪里错了么
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
请看文档
为
window.matchMedia('(min-width: 360px) and (max-width: 375px)');
,没@media