html中frame标签的使用方法-大悟县灿优商贸网站建设

关于灿优商贸

多方位宣传企业产品与服务 突出企业形象

公司简介 公司的服务 荣誉资质 新闻动态 联系我们

html中frame标签的使用方法

这篇文章将为大家详细讲解有关html中frame标签的使用方法,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

创新互联公司长期为上千余家客户提供的网站建设服务,团队从业经验10年,关注不同地域、不同群体,并针对不同对象提供差异化的产品和服务;打造开放共赢平台,与合作伙伴共同营造健康的互联网生态环境。为方山企业提供专业的成都做网站、成都网站建设,方山网站改版等技术服务。拥有10余年丰富建站经验和众多成功案例,为您定制开发。

我们首先来看看这篇文章的定义:

标签定义 frameset 中的一个特定的窗口(框架)。

frameset 中的每个框架都可以设置不同的属性,比如 border、scrolling、noresize 等等。

注释:如果您希望验证包含框架的页面,请确保doctype被设置为"Frameset DTD"。阅读更多有关DOCTYPE的内容。

重要事项:您不能与标签一起使用标签。不过,如果您需要为不支持框架的浏览器添加一个标签,请务必将此标签放置在<body></body>标签中!</p><p><strong>再来看看属性的介绍:</strong></p><p><img src="/upload/otherpic68/7975.jpg" alt="html中frame标签的使用方法"></p><p><strong>说说HTML iframe标签的用法:</strong></p><p>iframe是框架的一种形式,也比较常用到,下面是对其在平时常用到属性的总结</p><p>下面是一个常规的案例:</p><pre><iframe border=2 frameborder=0 width=500 height=500 marginheight=0 marginwidth=0 scrolling=no src="move-ad.html"> </iframe></pre><p><strong>HTML iframe标签的案例解释:</strong></p><p>iframe用于设置文本或图形的浮动图文框或容器。</p><p>border设定围绕图文框的边缘宽度</p><p>其中还有快读高度的设计</p><p>scrolling=no是否有滚动条(YES,NO,AUTO)</p><p>src指定IFRAME调用的文件或图片(HTML,HTM,GIF,JPEG,JPG,PNG,TXT,*.*)</p><p><strong>HTML iframe标记的用法介绍:</strong></p><p>提起iframe,可能你早已将之扔到“被遗忘的角落”了,不过,说起其兄弟Frame就不会陌生了。frame标记即帧标记,我们所说的多帧结构就是在一个浏览器窗口中显示多个HTML文件。现在,我们遇到一种很现实的情况:如有一个教程,是一节一节地上,每页末尾做一个“上一节“、“下一节“的链接,除了每节教程内容不同之外,页面其它部分内容都是相同的,如果一页一页地做笨页面,这似乎太让人厌烦了,这时突发奇想,如果有一种方法让页面其它地方不变,只将教程做成一页一页的内容页,不含其它内容,在点击上下翻页链接时,只改变教程内容部分,其它保持不变,这样,一是省时,另则以后如教程有个三长两短的变动,也很方便,不致于牵一发而动全军了;更重要的是将那些广告banner、栏目列表、导航等几乎每页的都有的东西只下载一次后就不再下载了。iframe标记,又叫浮动帧标记,你可以用它将一个HTML文档嵌入在一个HTML中显示。它不同于Frame标记最大的特征即这个标记所引用的 HTML文件不是与另外的HTML文件相互独立显示,而是可以直接嵌入在一个HTML文件中,与这个HTML文件内容相互融合,成为一个整体,另外,还可以多次在一个页面内显示同一内容,而不必重复写内容,一个形象的比喻即“画中画“电视。</p><p><strong>iframe标记的使用格式是:</strong></p><pre><iframe src="URL" width="x" height="x" scrolling="[option]" frameborder="x"></iframe></pre><p>src:文件的路径,既可是HTML文件,也可以是文本、ASP等;</p><p>width、height:"画中画"区域的宽与高;</p><p>scrolling:当SRC的指定的HTML文件在指定的区域不显不完时,滚动选项,如果设置为NO,则不出现滚动条;如为Auto:则自动出现滚动条;如为Yes,则显示;</p><p>FrameBorder:区域边框的宽度,为了让“画中画“与邻近的内容相融合,常设置为0。 比如:</p><pre><Iframe src="http://www.php.cn";; width="250" height="200" scrolling="no" frameborder="0"></iframe></pre><p>显示的效果如图:</p><p>关于html中frame标签的使用方法就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。</p> <br> 当前题目:html中frame标签的使用方法 <br> URL地址:<a href="http://www.apyobr.com/article/pojejp.html">http://www.apyobr.com/article/pojejp.html</a> </div> </div> <div class="other"> <h3>其他资讯</h3> <ul> <li> <a href="/article/popocc.html">如何查看Postgresql配置文件在哪里</a> </li><li> <a href="/article/pojhpp.html">利用LocationManager获取经度,纬度等地理信息完整示例</a> </li><li> <a href="/article/popoip.html">ES6中Set结构怎么用</a> </li><li> <a href="/article/poposs.html">Kubernetes1.8.4中如何安装Etcd</a> </li><li> <a href="/article/pojhpj.html">apache怎么设置虚拟主机</a> </li> </ul> </div> </div> <div class="line"></div> <!--底部--> <footer id="5"> <div class="foot1 container"> <div class="list"> <div class="item"> <a href="javascript:;"> <span class="ico1"><i class="iconfont">&#xe661;</i><img src="/Public/Home/img/ewm.png" alt=""></span> <strong>关注我们</strong> </a> </div> <div class="item"> <a href="" target="_blank"> <span><i class="iconfont">&#xe63c;</i></span> <strong>索要报价</strong> </a> </div> <div class="item"> <a href="" target="_blank"> <span><i class="iconfont">&#xe624;</i></span> <strong>我要咨询</strong> </a> </div> <div class="item"> <a href="" target="_blank"> <span><i class="iconfont">&#xe63e;</i></span> <strong>找到我们</strong> </a> </div> <div class="item"> <a href="" target="_blank"> <span><i class="iconfont">&#xe6cb;</i></span> <strong>投诉建议</strong> </a> </div> </div> <div class="tel"> <dl> <tel><a href="tel:18982081108" target="_blank">18982081108</a></tel><br> <span>也许您需要专业的服务,欢迎来电咨询</span> </dl> <dl> <tel><a href="tel:18980820575" target="_blank">18980820575</a></tel><br> <span>您的需求,是我们前进的动力</span> </dl> </div> </div> <div class="friend"> <div class="container"> <span class="tit">友情链接:</span> <div class="inner"> <a href="https://www.cdcxhl.com/hangyead/" target="_blank">1元广告</a><a href="https://www.cdcxhl.com/h5.html" target="_blank">h5页面制作</a><a href="https://www.cdcxhl.com/xiangyingshi.html" target="_blank">响应式网站设计公司</a><a href="https://www.cdcxhl.com/app.html" target="_blank">成都app开发</a><a href="https://www.cdcxhl.com/xiangyingshi.html" target="_blank">成都响应式网站设计</a><a href="https://www.cdcxhl.com/" target="_blank">成都建站公司</a><a href="https://www.cdcxhl.com/xiangyingshi.html" target="_blank">响应式网站设计</a><a href="https://www.cdcxhl.com/xiangyingshi.html" target="_blank">响应式网站建设</a><a href="https://www.cdcxhl.com/" target="_blank">成都网站设计</a><a href="https://www.cdcxhl.com/pinpai.html" target="_blank">成都品牌网站建设</a><a href="https://www.cdcxhl.com/waimao.html" target="_blank">外贸网站建设公司</a><a href="https://www.cdcxhl.com/mobile.html" target="_blank">手机网站建设</a><a href="https://www.cdcxhl.com/xiyun.html" target="_blank">西云服务器托管</a><a href="https://www.cdcxhl.com/douyin/" target="_blank">抖音运营公司</a><a href="https://www.cdcxhl.com/douyin/" target="_blank">抖音视频拍摄</a><a href="https://www.cdcxhl.com/zuyong/" target="_blank">成都服务器租用</a><a href="https://www.cdcxhl.com/qiye.html" target="_blank">成都企业网站建设</a><a href="https://www.cdcxhl.com/ruanwen/" target="_blank">软文营销推广</a> </div> </div> </div> <div class="foot"> <div class="container"> <div class="footNav"> <h3>网站建设</h3> <a href="http://www.cdkjz.cn/fangan/finance/" target="_blank">金融行业网站建设方案</a><a href="http://www.cdkjz.cn/fangan/store/" target="_blank">成都电商网站建设方案</a><a href="http://seo.cdkjz.cn/yingxiao/" target="_blank">营销型网站建设</a> </div> <div class="footNav"> <h3>服务器托管</h3> <a href="http://www.cdxwcx.cn/tuoguan/mianyang.html" target="_blank">绵阳服务器托管</a><a href="https://www.cdxwcx.com/jifang/yaan.html" target="_blank">雅安服务器托管</a><a href="https://www.cdcxhl.com/idc/ziyang.html" target="_blank">资阳天府云计算中心</a> </div> <div class="footNav"> <h3>网站制作</h3> <a href="http://chengdu.xwcx.net/mobile/" target="_blank">移动手机网站制作</a><a href="http://www.cxhlcq.com/zhizuo/" target="_blank">重庆网站制作</a><a href="http://www.cxhljz.cn/" target="_blank">成都网站制作</a> </div> <div class="footNav"> <h3>企业服务</h3> <a href="https://www.cdcxhl.com/ruanwen/yingxiao/" target="_blank">软文发稿</a><a href="https://www.cdcxhl.com/ruanwen/yingxiao/" target="_blank">软文平台</a><a href="https://www.cdcxhl.com/service/ssl.html" target="_blank">ssl证书</a> </div> <div class="fr ecode"> <div class="fl"> <img src="/Public/Home/img/ewm.jpg"> <p>关注企业微信</p> </div> <div class="fr slogan"> <p class="icon"> <a class="ph" href=""><i class="iconfont">&#xe68d;</i></a> <a class="qq" href="tencent://message/?uin=1683211881&amp;Site=&amp;Menu=yes"><i class="iconfont">&#xe612;</i></a> </p> <p> <i>想要找 </i> <a href="https://www.cdcxhl.com/xiaochengx.html">小程序开发</a>、<a href="https://www.cdcxhl.com/app.html">APP开发</a>、 <a href="https://www.cdcxhl.com/yingxiao.html">营销型网站建设</a>、<a href="https://www.cdxwcx.com/">网站建设</a>、 <i><a href="https://www.cdcxhl.com/wangzhandingzhi.html">网站定制开发</a></i> ,就选<a href="http://www.apyobr.com/">灿优商贸</a> </p> </div> </div> </div> <div class="bottom container"> <p class="fl"> 版权所有:大悟县灿优商贸有限公司 备案号:<a href="https://beian.miit.gov.cn/" target="_blank" rel="nofollow">鄂ICP备2025125667号-8</a> 服务热线:18982081108 </p> <p class="fr"> <a href="https://www.cdxwcx.com/" target="_blank">成都网站建设</a>: <a href="https://www.cdcxhl.com/" target="_blank">创新互联</a> </p> </div> </div> </footer> <!--在线咨询--> <div class="fot"> <ul> <li> <a href="#" target="_blank"> <img src="/Public/Home/img/fot1.png" alt=""> <p>在线咨询</p> </a> </li> <li> <a href="tel:18980820575" target="_blank"> <img src="/Public/Home/img/fot2.png" alt=""> <p>拨打电话</p> </a> </li> </ul> </div> </body> </html> <script> $(".con img").each(function(){ var src = $(this).attr("src"); //获取图片地址 var str=new RegExp("http"); var result=str.test(src); if(result==false){ var url = "https://www.cdcxhl.com"+src; //绝对路径 $(this).attr("src",url); } }); window.onload=function(){ document.oncontextmenu=function(){ return false; } } </script>