나는 내 사이트에 모더 나이저를 포함 :Modernizr 미디어 쿼리가 작동하지 않습니까?
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/modernizr.custom.js"></script>
나는 custom.js이 있습니다
if (Modernizr.mq("screen and (max-width:480)")) {
alert("hello");
}
나는 480 픽셀을로 브라우저 크기를 조정할 사이트를 새로
,하지만 난 'didn를 어떤 경고라도 보지 마라.
이 문제를 해결하기위한 제안이 있으십니까?
감사 : 미디어 쿼리 (IE 대체 포함) 트리거 때 스크립트를 실행하려면이 바로 오늘 만든
. – alexchenco