frameset便是网页画面分成几个框窗,同时取得多个 URL。只需要 <frameset> <frame> 即可,所有框架标记需要放在一个总起的 html ,所以不必放入 <BODY> 标记,浏览这框架必须读取这档案 面不是其他框窗的档案。<FRAMESET> 是用来划分框窗,每一窗框由一个 <FRAME> 标 记所标示,<FRAME>必须在 <FRAMESET> 范围中使用。如下例:
<frameset cols="50%,*"> <frame name="left" src="left.html"> <frame name="right" src="right.html">
</frameset>
此例中 <frameset> 把画面分成左右两相等部分,左便是显示 left.html,右边则会显示 right.html 这档案,<frame> 标记所标示的框窗永远是按由上而下、由左至右的次序
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>myshop管理中心</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<frameset rows="51,*" framespacing="0" border="0">
<frame src="http://localhost/rickyshop/index.php/admin/main/top" id="header-frame" name="header-frame" frameborder="no" scrolling="no">
<frameset cols="180, 10, *" framespacing="0" border="0" id="frame-body">
<frame src="http://localhost/rickyshop/index.php/admin/main/menu" id="menu-frame" name="menu-frame" frameborder="no" scrolling="yes">
<frame src="http://localhost/rickyshop/index.php/admin/main/drag" id="drag-frame" name="drag-frame" frameborder="no" scrolling="no">
<frame src="http://localhost/rickyshop/index.php/admin/main/content" id="main-frame" name="main-frame" frameborder="no" scrolling="yes">
</frameset>
</frameset>
<frameset rows="0, 0" framespacing="0" border="0">
<frame src="http://api.ecshop.com/record.php?mod=login&url={$shop_url}" id="hidd-frame" name="hidd-frame" frameborder="no" scrolling="no">
</frameset>
</head>
</html>