我是靠谱客的博主 孤独鱼,这篇文章主要介绍用frameset实现复杂的页面布局技巧小结 ,现在分享给大家,希望可以做个参考。


复制代码
代码如下:

<html>
<!--混合框架的布局:
要想实现复杂的页面布局,只需在<frameset>标签中在使用<frameset>标签,然后通过cols,rows属性进行设置就ok了-->
<frameset rows="50%,50%">
<frame src="02图片标签.html" name="top">
<frameset cols="25%,75%">
<frame src="frame_a.html">
<frame src="02图片标签.html" name="right">
</frameset>
</frameset>
</html>

frame_a.html

复制代码
代码如下:

<html>
<head></head>
<!--a标签中target属性指向框架集合中的元素frame
target的值就是frame标签中name的值-->
<body>
<a href="http://www.itheima.com" target="top">官网</a>

<a href="http://www.baidu.com" target="right">百度</a>
</body>
</html>

最后

以上就是孤独鱼最近收集整理的关于用frameset实现复杂的页面布局技巧小结 的全部内容,更多相关用frameset实现复杂的页面布局技巧小结内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(194)

评论列表共有 0 条评论

立即
投稿
返回
顶部