HTML框架
一个页面中可以包含若干个html文档
框架标签:<frameset></frameset>
<frameset></frameset>与<body></body>不能共存
混合框架
<html>
<head></head>
<frameset cols="10%,*">
<frame src="left.html”/>
<frameset rows="20,*">
<frame src="right_top.html"/>
<frame src="right_bottom.html"/>
</frameset>
</frameset>
</html>
案例:锚点在框架页面的打开方式
- 在详情页设置锚点
- 在框架页面的子页面设置name = “right”
- 找到锚点 打开方式为tagget = “right”
内联框架
<!doctype>
<html>
<head></head>
<body>
<p>页面首页</p>
<iframe src="bottom.html"></iframe>
</body>
</html>
iframe 可以存在 <body> 中