我真的不得不在每個頁面DIV上重複「導航欄」嗎?或者有沒有解決方案只使用一個頁腳在多頁html內的所有頁面?JQuery Mobile - 在多頁面模板中固定導航
<div data-role="page" id="page11">
<div data-role="header"> <h1>Home</h1> </div>
<div data-role="content"> <h3>TEST</h3>
<p> <a href="#dialog" data-rel="dialog" data-transition="pop" data-role="button">Dialogbox </a> </p>
</div>
<div data-role="footer" data-id="foo1" data-position="fixed">
<div data-role="navbar">
<ul>
<li> <a href="#page1" data-iconpos="top" data-icon="home">Start </a> </li>
<li> <a href="#page2" data-iconpos="top" data-icon="help">Hilfe </a> </li>
</ul>
</div>
</div>
</div>
<div data-role="page" id="page2">
<div data-role="header"> <h1>Hilfe </h1> </div>
<div data-role="content"> <h3>TEST </h3> </div>
<div data-role="footer" data-id="foo1" data-position="fixed">
<div data-role="navbar">
<ul>
<li> <a href="#page1" data-iconpos="top" data-icon="home">Start </a> </li>
<li> <a href="#page2" data-iconpos="top" data-icon="help">Hilfe </a> </li>
</ul>
</div>
</div>
</div>
Thx for any ideas!
感謝iam來自php世界,但不想使用任何服務器端代碼。將檢查提供的模板引擎! – opHASnoNAME