这是页面:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style>
#leftFrame {border-right:1px solid #a0bfe2}
</style>
</head>
<frameset rows="65,*" cols="*" frameborder="no" border="0" framespacing="0">
<frame src="" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" />
<frameset rows="*" cols="160,*" framespacing="0" frameborder="no" border="0">
<frame src="" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" />
<frame src="" name="mainFrame" id="mainFrame" scrolling="Yes" />
</frameset>
</frameset>
<noframes>
<body>
</body>
</noframes>
</html>
这是脚本:
window.parent.topFrame.location.reload();
window.parent.leftFrame.location.reload();
window.parent.mainFrame.location.reload();
本文展示了一个使用HTML与Frameset创建网页布局的例子。通过定义不同的框架(Frames),如topFrame、leftFrame 和 mainFrame,可以实现页面内容的模块化显示。此外,还提供了一个JavaScript脚本用于刷新这些框架内的内容。
173

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



