top.html主要內容:
<body>
<span style="color: red; font-family: '楷體';font-size: 15px;">top.html</span><br/>
這是上框架(Section A)
</body>
main.html主要內容:
<body>
<span style="color: blue; font-family: 'estrangelo edessa'; font-size: 20px;">mian.html</span><br/>(Sction C)
</body>
treemenu.html主要內容:
<body>
treemenu.html<br/>(Section B)
</body>
frame.html的內容:
<!DOCTYPE html>
<html>
<frameset rows="20%,80%" border="2">
<frame src="top.html" noresize scrolling="no" name="top"></frame>
<frameset cols="30%,70%">
<frame src="treemenu.html" noresize="noresize" scrolling="no" name="treemenu"/>
<frame src="mian.html" noresize="noresize" scrolling="no" name="mian" />
</frameset>
</frameset>
</html>
運行結果:
frameset可以嵌套使用,所以可以構造出不同類型的頁面、border標籤的作用和src引入其他頁面。