1、使用object标签<object type="text/x-scriptlet" data="另一个html的名称"></object>
2、使用iframe标签<iframe src="另一个文件名称" width="100%" frameborder="0" scrolling="no"></iframe>
其中frameborder是镶嵌页面周围的边框的设置,为0则为无边框;scrolling标识着是否有滚动条;
本文介绍了两种将一个HTML页面嵌入到另一个HTML页面的方法:使用object标签和iframe标签。object标签适用于简单的文本脚本嵌入,而iframe标签可以指定边框和滚动条等属性,更加灵活。
1、使用object标签<object type="text/x-scriptlet" data="另一个html的名称"></object>
2、使用iframe标签<iframe src="另一个文件名称" width="100%" frameborder="0" scrolling="no"></iframe>
其中frameborder是镶嵌页面周围的边框的设置,为0则为无边框;scrolling标识着是否有滚动条;