×

使用iframe标签创建一个网页内的框架,通过使用框架,你可以在同一个浏览器窗口中显示不止一个页面。

hqy hqy 发表于2021-06-25 14:16:31 浏览1688 评论0

抢沙发发表评论

使用iframe标签创建一个网页内的框架,通过使用框架,你可以在同一个浏览器窗口中显示不止一个页面。

<iframe src="http://www.runoob.com/html/html-iframes.html" width="800" height="500" frameborder="0"></iframe>

<!-- 使用iframe标签创建一个网页内的框架,通过使用框架,你可以在同一个浏览器窗口中显示不止一个页面。 -->

<!-- src属性内填写需要展示的页面地址,width与height设置iframe元素显示的高度和宽度 frameborder="0"移除iframe的边框-->

<p><a href="http://www.runoob.com/html/html-iframes.html" target="popup">打开新页面</a></p>

<!-- 前面有讲到a标签的target属性可以将页面显示到指定的区域,这里也可以讲a标签链接的页面显示到iframe中 -->

<iframe src="" frameborder="0" name="popup" width="900" height="500" style="display: block;margin-top: 50px;"></iframe>



 您阅读本篇文章共花了: 

打赏

本文链接:https://kinber.cn/post/1778.html 转载需授权!

分享到:


推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

群贤毕至

访客