HTML框架
<html>
<head></head>
<frameset cols="25%,*" rows="" frameborder="0">
<frame src="a.html" noresize/>
<frame src="b.html" />
</frameset>
</html>
<html>
<head></head>
<frameset cols="10%,*">
<frame src="left.html" />
<frameset rows="20%,*">
<frame src="right_top.html" />
<frame src="right_bottom.html" />
</frameset>
<frame src="right.html" />
</frameset>
</html>
targrt="_blank"
锚点在框架页面的打开方式
(1)在详情页设置锚点
(2)在框架页面的子页面设置name="right"值
(3)找到锚点 打开方式为target="right"
<html>
<head></head>
<body>
<p>页面首页</p>
<iframe src="bottom.html" /></iframe>
</body>
</html>
iframe 可以存在<body>中
一个页面中可以包含若干个html文档
框架
写法:
<!doctype html><html>
<head></head>
<frameset cols="25%,*" rows="" frameborder="0">
<frame src="a.html" noresize/>
<frame src="b.html" />
</frameset>
</html>
<frameset></frameset>不能与body并存
属性:
noresiz或noresize="noresize" 禁止拖到页面(子压面)frameborder="0" 当前框架页面中去除框架边框
cols=“”左右分割大小 rows=“”上下分割大小
混合框架
写法:
<!doctype html><html>
<head></head>
<frameset cols="10%,*">
<frame src="left.html" />
<frameset rows="20%,*">
<frame src="right_top.html" />
<frame src="right_bottom.html" />
</frameset>
<frame src="right.html" />
</frameset>
</html>
targrt="_blank"
锚点在框架页面的打开方式
(1)在详情页设置锚点
(2)在框架页面的子页面设置name="right"值
(3)找到锚点 打开方式为target="right"
内联框架
写法:
<!doctype html><html>
<head></head>
<body>
<p>页面首页</p>
<iframe src="bottom.html" /></iframe>
</body>
</html>
iframe 可以存在<body>中