3 种include html的方法
来源:互联网 发布:mysql初学者书籍推荐 编辑:程序博客网 时间:2024/06/06 00:23
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>
但你会发现还会有点问题,就是背景色不同,你只要在引入的文件import.htm中使用相同的背景色也可以,但如果你使用的是IE5.5的话,可以看看这篇关于透明色的文章 如果想引入的文件过长时不出现滚动条的话在import.htm中的body中加入scroll=no
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>
- 3 种include html的方法
- HTML里面include其他文件的方法
- 在html中include一个文件内容的几种方法
- apache配置方法-实现html,shtml文件的include命令
- html中<#include "/headPage.html">的用法
- html include
- html include
- ASP与HTML的include问题
- HTML中include file标签的用法
- html中#include file的用法
- jsp:include html文件乱码的解决办法
- HTML中include file标签的用法
- jsp:include html文件乱码的解决办法
- html中#include file的用法
- jsp:include html文件乱码的解决办法
- HTML中include file的用法
- struts.xml的include方法
- 获得HTML元素的3种方法
- 使用 Google Gears 开发离线应用
- c++ builder在调试过程中捕获异常
- 水晶报表应用高级参数功能
- 水晶报表中筛选记录的三种解决方案
- Page基类的重写
- 3 种include html的方法
- 编程更改公式字段示例代码
- Java中的Date Time 与SQL Server 2005里的Datetime 之间的交互
- C# 2005 GenerateMember 属性说明
- 水晶报表公式使用必读
- Ant 学习笔记
- SQL2005系统升级手记之一-解决sa帐户被锁定
- 配置Spring,针对Service层的bean做事务处理
- spring事务处理