網站開發進階(十)如何將一個html頁面巢狀在另一個頁面中
阿新 • • 發佈:2019-01-27
也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!
如何將一個html頁面巢狀在另一個頁面中
1.IFrame引入
<IFRAME NAME="content_frame" width=100% height=30 marginwidth=0 marginheight=0 SRC="import.htm" ></IFRAME>
你會看到一個外部引入的檔案,但會發現有一個類似外框的東西將其包圍,可使用
<iframe name="content_frame" marginwidth=0 marginheight=0 width=100% height=30 src="import.htm" frameborder=0></iframe>
2.<object>方式
<object style="border:0px" type="text/x-scriptlet" data="import.htm" width=100% height=30></object>
3.Behavior的download方式
<span id=showImport></span>
<IE:Download ID="oDownload" STYLE="behavior:url(#default#download)" />
<script>
function onDownloadDone(downDate){
showImport.innerHTML=downDate
}
oDownload.startDownload('import.htm',onDownloadDone)
</script>