html5 content not styled in JavascriptMVC+Modernizr
I'm using Modernizr and JavascriptMVC.
Mod开发者_Python百科ernizr is in the head section.<script src="./resources/js/modernizr-1.6.min.js"></script>
And steal before closing body:
<script type='text/javascript' src='../steal/steal.js?formcms,development'></script>
When I add some html5 content in the controller like this:
$('body').append(this.view('header'))
Use innerShiv.
<script src="http://jdbartlett.github.com/innershiv/innershiv.js" type="text/javascript"></script>
then
$('body').append(innerShiv(this.view('header')));
精彩评论