1. <frameset>:框架标签
属性:
- cols : 设置列的数目和尺寸。
<html>
<frameset cols="50%,20%,*"> //表示页面分为三列,每列一个页面,第一个页面50%比例。
<frame src="top.htm" >
<frame src="top.htm" >
<frame src="top.htm" >
</frameset>
</html>
// 不能与 <frameset></frameset> 标签一起使用 <body></body> 标签。不能把<frameset>放在<body>内
- 行的数目和尺寸。
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <base href="http://localhost:8080/test/study/"> <title>Insert title here</title> </head> <frameset rows="50%,50%"> <frame src="frameA.html"> <frameset cols="25%,75%"> <frame src="frameB.html"> <frame src="frameC.html"> </frameset> </frameset> </html>
结果:
![](https://images2015.cnblogs.com/blog/1072930/201702/1072930-20170222155220898-1467230639.png)