2017/2/21 学习html的第五天

来源:互联网 发布:博罗政府网络问政 编辑:程序博客网 时间:2024/05/22 14:30
html框架


一个页面中可以吧包含若干个html文档


框架


<!doctype html>
<html>
<head></head>
<frameset cols="">
<frame src="1.html" noresize />
<frame src="2.html" />
</frameset>
</html>


<frameset></frameset>与boyd不能共存


<frame src="1.html" noresize />


属性


noresize 禁止更改框边


frameborder="0" 没有边框


混合框架


<html>
<head></head>
<frameset>
<frame src="left.html" />
<frameset>
<frame src="" />
<frame src="right-top.html" />
<frame src="right-bottom.html" />
</frameset>
</frameset>
</html>


target="_blank"


锚点在框架页面的打开方式


(1)在详情页设置锚点
(2)在框架页面的子页面设置  name="right"
(3)找到锚点 打开方式为  target="right"


内联框架


<!doctype html>
<html>
<head></head>
<body>
<p>页面首页</p>
<iframe src="公共文件.html" frameborder="0"></iframe>
</body>
</html>


iframe  可以存在 
0 0
原创粉丝点击