<div class="modal hide fade" id="modal_window">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Modal header</h3>
</div>
<div class="modal-body">
<p>One fine body</p>
</div>
<div class="modal-footer">
<a href="#" class="btn">Close</a>
<a href="#" class="btn btn-primary">Save changes</a>
</div>
</div>
這是我的HTML代碼,Twitter的引導開放遠程URL編程
我想遠程內容加載到它,讓說yahoo.com
我試圖
$('#modal_window').attr('data-remote', 'http://www.yahoo.com').modal({show:true, remote:true});
它顯示了正常的模態內容而不是雅虎載入模態。我如何使它加載到模態窗口yahoo.com?
由於
它與拼寫modal_win vs modal_window有關嗎? –
不,這是正確的,我把它放在這裏時拼錯了。感謝您注意它。 – joh