2013-04-25 16 views
0

鑑於我的HTML結構爲:JQuery Mobile:如何中和一個元素上的JQM?

<body> 
    <div data-role="page" data-theme="b"> 
    <header>My header</header> 
    <div data-role="content"> 
    My page-specific content 
    </div> 
    <footer>My footer</footer> 
    </div><!-- page end--> 
</body><!-- body end--> 

我想JQM.js(和JQM.css)到頁眉,頁腳的工作,而不是在頁面上。

.1。如何中和這個單獨的<div data-role="content">元素上的JQM.js?


可選: 2.如果可能的話,怎麼同一個元素中和JQM.css?

+0

可能與http://stackoverflow.com/questions/6031335/ – Hugolpz 2013-04-25 22:07:13

回答

2

變化data-role="content"data-role="none"

+1

**注:**它不繼承。子元素*不*被中和。 – Hugolpz 2013-04-25 22:08:17

相關問題