frameset ,iframe的使用

frameset使用: 

<html>
	<head>
		<title>freameSet</title>
		<meta charset="utf-8" />
	</head>
	<frameset rows="15%,*">
		<frame src="sub1.html" />
		
		<frameset border="1" onresize="no" cols="15%,*">
			<frame src="sub2.html" />
			<frame name="content" src="sub3.html" />
		</frameset>
	</frameset>
</html>

 iframe使用: 

<!DOCTYPE html>
<html>
	<head>
		<title>
			xxx后台管理系统
		</title>
		<meta charset="utf-8"/>
	</head>
	<body>
		<table border="1" cellpadding="0" cellspacing="0" width="100%" height="600">
			<tr height="80">
				<td colspan="2">这里是标题部分</td>
			</tr>
			<tr>
				<td width="150">
					<p><a target="content" href="http://www.baidu.com">百度</a></p>
					<p><a target="content" href="http://www.igeekhome.com">极客营</a></p>
				</td>
				<td>
					<iframe frameborder="0" width="100%" height="100%" src="demo1/sub3.html" name="content"></iframe>
				</td>
			</tr>
		<table>
	</body>
</html>

 

猜你喜欢

转载自blog.csdn.net/qq_15204179/article/details/82594631