-1
我知道我無法設計從另一個域加載的iFrame的內容樣式。有沒有可以放在父窗口中的JavaScript解決方案,這將允許我將HTML寫入iFrame,如document.write <link rel="stylesheet"…
?我可以將HTML注入iFrame中
OR
我可以從一個iFrame的內容,並將其放入父窗口DIV?
我知道我無法設計從另一個域加載的iFrame的內容樣式。有沒有可以放在父窗口中的JavaScript解決方案,這將允許我將HTML寫入iFrame,如document.write <link rel="stylesheet"…
?我可以將HTML注入iFrame中
OR
我可以從一個iFrame的內容,並將其放入父窗口DIV?
如果它是一個跨域的iframe,你根本不能。
http://stackoverflow.com/questions/4119979/create-an-iframe-element-and-append-html-content-to-it-with-jquery – 2012-02-13 23:22:14