A. html网页中如何调用另一个html网页的一部分

<tablewidth="760"border="0"align="center"cellpadding="1"cellspacing="1">

<tr>

<td>

<palign="center"style="margin-top:-190px;margin-left:-109">

<iframewidth="860"height="650"src="url"class="t-iframe"scrolling="no"security="restricted"sandbox=""frameborder="no"border="0"marginwidth="0"marginheight="0"scrolling="no"></iframe>

</td>

</tr>

</table>

(1)html调用扩展阅读:

参数

url,[data,[callback]]String,Map/String,CallbackV1.0

url:待装入 HTML 网页网址。

data:发送至服务器的 key/value 数据。在jQuery 1.3中也可以接受一个字符串了。

callback:载入成功时回调函数。

示例

1、描述:

加载文章侧边栏导航部分至一个无序列表。

HTML 代码:

<b>jQuery Links:</b><ul id="links"></ul>

jQuery 代码:

$("#links").load("/Main_Page #p-Getting-Started li");

2、描述:

加载 feeds.html 文件内容。

jQuery 代码:

$("#feeds").load("feeds.html");

B. html如何调用外部js中得方法

需要准备的材料分别有:电脑、html编辑器、浏览器

1、首先,打开html编辑器,新建html文件,例如:index.html,引用外部js,例如index.js。

C. html怎么调用html文件

1.<object>方式

<object style="border:0px" type="text/x-scriptlet" data="import.htm" width=100% height=30></object>

2.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>

D. HTML网页中如何调用html页面

提问的同志,你的网名和我的真名后面两个字是一样的。

一般都是用IFRAME,楼上朋友说的正确,我给你写个例子,假如你需要调用的HTML文件名为LOGO.HTML,那么你在其余调用此文件的文件里面添加下面的代码就行(可以用记事本修改HTML文件):
<iframe src=logo.html style="with:100%;height:200'></iframe>

E. html调用外部html

通过嵌套iframe 可以实现调用另一个页面
<script type="text/javascript">
$(function () {
document.getElementById("ifm").src ="";//Url地址
$("#ifm").load(function () {
var h = document.body.clientHeight;
var w = document.body.clientWidth;
document.getElementById("ifm").height = h + "px";
document.getElementById("ifm").width = w + "px";

});
})
</script>
<body style="overflow-y:hidden;overflow-x:hidden">
<div id="pageone" style="">
<iframe name="ifm" id="ifm" scrolling="yes" style="background-color: transparent;" marginwidth="0" marginheight="0" frameborder="0">
</iframe>
</div>
</body>

F. 在html中如何调用另一个html页面

1;iframe框架。
2;页面转换成JS,然后用调用JS的方法调用。
3;用object。
----------------------------------------------------------
我自己比较喜欢第二种。

G. 如何在html中调用html文件

有两种方法。1,<!--#include file="wedding_bottom.html"-->注意这种方式被引入的html文件不能含有<html><head><body>标签。2,<iframe width="869px" height="768px" id="windows" name="windows" frameborder="0" src="hkprintingone.asp" scrolling="auto" style="overflow:scroll; overflow-x:hidden; overflow-x:hidden !important; overflow-y:hidden; overflow-y:auto !important; border-right:#F2A116 1px solid;"></iframe> 这种方式就没有上面的要求。

H. 静态html怎么调用html页面

html 静态页面中引用外部页面没那么方便,主要方法有:

1.使用框架来实现,但是那样占用线程较多,速度慢;
<IFRAME width=100% height=30 marginwidth=0 marginheight=0 SRC="header.htm" ></IFRAME>
加上它的一些属性可以实现一些透明,无滚动条等具体的效果.大家可以html教程的相关介绍

2.使用. js脚本来实现

就是把相关的html文件转化为js文件.再在调用的时候用
<script src="import.js"></script>
或<script src="import.asp"></script>,此时import.asp中的内容必须使用js输入才行。

如果你用此方法来包含像头部,导航条的话,它将不利于搜索引擎的搜集。
另外,编写js输出的内容代码较凌乱,容易出错。

3.下面是一种实现方法:
最好能有一种方法,就像asp页面包含其他页面时那样,用一小段包含语句就可以实现,不要将需要包含的内容出现在本页面内,而是分割出去到另外一个自己的页面。

<span ><IE:Download STYLE="behavior:url(#default#download)" />
<script>
function onDownloadDone(downData){
showImport1.innerHTML=downData
}
oDownload1.startDownload('top.htm',onDownloadDone)
</script>

注:包含的页面为 top.htm 只要把需要包含的页面改掉就可以了!其中id=showimport 不能改为其他,这种写法为一次包含一个文件。

4.<object> 个人觉得此法方便比较好

<object type="text/x-scriptlet" data="import.htm" width=100% height=30></object>

5.Behavior的download方式

<span
<IE:Download STYLE="behavior:url(#default#download)" />
<script>
function onDownloadDone(downDate){
showImport.innerHTML=downDate
}
oDownload.startDownload('import.htm',onDownloadDone)
</script>

6、HTML中执行SSL
存在这种情况,主机只默认的是index.html,但是需要首页是动态的,除了上述方法,可以使用SSL
[!--#exec cgi="index.pl" --]

1、在服务器上打开“服务器端包含”
2、把你的静态文件扩展名改成:shtml
3、在文件中添加<!--#include file="你要包含的文件" -->

I. html调用另一个html的DIV

新建一个
CSS样式表
,把1样式写到该表内,a.html和b.html分别调取同一个样式表。