利用框架frameset標籤將多個頁面合成在同一個網頁上

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引入其他頁面。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章