1.IFrame引入
<IFRAME NAME="content_frame" width=100% height=30 marginwidth=0 marginheight=0 SRC="import.htm" ></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>

本文介绍了三种不同的网页元素加载方法:使用IFrame引入、利用object标签加载以及通过Behavior的download方式实现内容展示。这些方法适用于不同场景,对于网页开发者来说非常实用。
153

被折叠的 条评论
为什么被折叠?



