开发者

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'))

It is not styled.

Is there a solution to style html5 elements after adding them in a view in JavascriptMVC? I'm using IE6.


Use innerShiv.

<script src="http://jdbartlett.github.com/innershiv/innershiv.js" type="text/javascript"></script>

then

$('body').append(innerShiv(this.view('header'))); 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜