您的位置:首页 > 其它

使用frameset制作导航栏

2010-05-31 10:53 183 查看


1.制作导航框架(注意红色部分,这个很重要)

<html>

<frameset rows="25%,75%">
<frame src="Test2.html"><!--这是头部top>

<frameset cols="25%,75%">
<frame src="guide.html"><!--左边的导航栏>
<frame src="Test.html" name="mainframe"><!--右边的主框架>
</frameset>

</frameset>

</html>

2.制作导航页面(注意target属性)

<html>
<body>
<a href="Test.html" target="mainframe">跳转到Test.html</a></br>
<a href="Test1.html" target="mainframe">跳转到Test1.html</a></br>
<a href="Test2.html" target="mainframe">跳转到Test2.html</a></br>
</body>

</html>

3.frameset和body不可嵌套使用,并不是所有的浏览器都支持frameset

4.如果不想让框架拖动,在<frame> 标签内嵌入noresieze="noresize"

如:<frame noresieze="noresize">
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: