我有一個鏈接列表,每個鏈接打開自己的模式。這些模態內容中的每一個都顯示一個html文件。這是一個樣本;從另一個頁面打開引導模式
<div id="how-rtm-works" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h1 id="myModalLabel">How Right to Manage works</h1>
</div>
<div class="modal-body" id="utility_body">
<p>One fine body…this is getting replaced with content that comes from passed-in href</p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<li><a data-target="#how-rtm-works" href="modal-content/how-RTM-works.html" role="button" data-toggle="modal">How Right to Manage works</a></li>
因爲有多個模態,每個模態都有自己的ID,它在數據目標中被引用。
任何人都可以告訴我如何從另一個頁面,或在我的情況下,所有頁面,因爲這些將鏈接在網站頁腳導航目標這些模態。
我不認爲我得到你的要求...你想在一個頁面上打開另一個模式? – Peter
我在網頁上有五個鏈接,每個鏈接都打開自己的Modal(我已經這樣做了,因爲我無法弄清楚如何在所有鏈接中使用這個Modal)。我希望在我的模板頁腳中包含這些鏈接就像在具有Modals的頁面上一樣,如果用戶從另一個頁面單擊頁腳中的鏈接,它們將被引導至包含模塊的頁面並打開Modal。 –
爲什麼不像一個普通網站那樣製作單獨的網頁:/ – Peter