利用框架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引入其他页面。

发布了101 篇原创文章 · 获赞 49 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/Austin_/article/details/101313099