0
我想爲index.html頁面創建一個彈出窗口。我有一個演示,彈出窗口將出現在網頁的右下角。 但我的演示是由jsp寫的,而不是html。如何在另一個頁面中包含html頁面?
<jsp:include page="popup.html" flush="true" ></jsp:include>
它工作正常。
但在html中,這行不起作用。我曾嘗試過:
<!--#include virtual="popup.html" -->
<!--#include file="popup.html" -->
但沒有彈出窗口。
那麼,有沒有包括popup.html。謝謝!
嘗試使用iFrame ... – 2012-03-28 03:26:26
只能通過XHR,但它需要額外的HTTP請求。 – 2012-03-28 03:27:36
可能的重複http://stackoverflow.com/questions/676394/how-to-include-an-html-page-into-an-html-page - 看看[這個答案](http://stackoverflow.com/a/676409/983430)瞭解如何使用jQuery進行此操作。 – 2012-03-28 03:50:59