문제

I'm using Modernizr to detect browser features. But this time when I started a project it seems that Modernizr does not apply its classes to the html.

I just realized when I replace my local source to the JS:

<script src="js/libs/modernizr-2.7.1.js"></script>

with:

<script src="http://ajax.cdnjs.com/ajax/libs/modernizr/1.7/modernizr-1.7.min.js"></script>

Then it works like a charm. Why local copy of Modernizr does not work?

CHMODS are 777 and I'm viewing the source by Shift+CTRL+I in Firefox.

도움이 되었습니까?

해결책

sounds like your build doesn't have the cssclasses option included from the builder.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top