窗口分帧就是一个浏览器显示多个窗口, 显示多个页面, 更多用于后台页面. 下章会讲到后台的运用.
二: 窗口分帧
1.作用: 将浏览器分为多个窗口, 每个窗口显示不同的网页(URL)
2.各属性作用:
<frame noresize="noresize" scrolling="null" src="http://www.baidu.com"> <!--noresize="noresize": 窗口不可拉动, 固定帧的尺寸. scrolling="null":隐藏滚动条-->
3.代码示例
<!-- 定义: 将浏览器分为多个窗口同时显示,每个帧(页面)都有自己独立的URL -->
<frameset rows="*,*,*">
<frameset cols="*,*">
<frame src="http://www.youkuaiyun.com">
<frame src="http://www.baidu.com">
</frameset>
<frameset rows="*,*,*">
<frame src="http://www.sina.com">
<frame src="http://www.hao123.com">
<frame noresize="noresize" src="http://www.chinaunix.net"> <!-- noresize="noresize": 窗口不可拉动,固定帧的尺寸 -->
</frameset>
<frame scrolling="null" src="main.html"> <!-- scrolling="null":隐藏滚动条 -->
</frameset>
4.运行结果