HTML基础(四)-创新互联-成都创新互联网站建设

关于创新互联

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

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

HTML基础(四)-创新互联

框架

通过使用框架,你可以在同一个浏览器窗口中显示不止一个页面。每份HTML文档称为一个框架,并且每个框架都独立于其他的框架。

创新互联公司成立以来不断整合自身及行业资源、不断突破观念以使企业策略得到完善和成熟,建立了一套“以技术为基点,以客户需求中心、市场为导向”的快速反应体系。对公司的主营项目,如中高端企业网站企划 / 设计、行业 / 企业门户设计推广、行业门户平台运营、成都APP应用开发手机网站制作、微信网站制作、软件开发、绵阳服务器托管等实行标准化操作,让客户可以直观的预知到从创新互联公司可以获得的服务效果。

使用框架的坏处:

  • 开发人员必须同时跟踪更多的HTML文档

  • 很难打印整张页面

框架结构标签()

框架结构标签()定义如何将窗口分割为框架

  • 每个 frameset 定义了一系列行

  • rows/columns 的值规定了每行或每列占据屏幕的面积

框架标签(Frame)

Frame 标签定义了放置在每个框架中的 HTML 文档。

在下面的这个例子中,我们设置了一个两列的框架集。第一列被设置为占据浏览器窗口的 25%。第二列被设置为占据浏览器窗口的 75%。HTML 文档 "frame_a.htm" 被置于第一个列中,而 HTML 文档 "frame_b.htm" 被置于第二个列中

假如一个框架有可见边框,用户可以拖动边框来改变它的大小。为了避免这种情况发生,可以在 标签中加入:noresize="noresize"。

为不支持框架的浏览器添加 标签。</p><p>重要提示:不能将 <body></body> 标签与 <frameset></frameset> 标签同时使用!不过,假如你添加包含一段文本的 <noframes> 标签,就必须将这段文字嵌套于 <body></body> 标签内。(在下面的第一个实例中,可以查看它是如何实现的。)</p><p>简单的框架嵌套:三个框架都可拖动边框修改大小</p><pre><html> <frameset&nbsp;rows="50%,50%"> <frame&nbsp;src="1.html"> <frameset&nbsp;cols="25%,75%"> <frame&nbsp;src="2.html"> <frame&nbsp;src="3.html"> </frameset> </frameset> </html></pre><pre><html> <frameset&nbsp;cols="50%,*,25%"> &nbsp;&nbsp;&nbsp;<!--&nbsp;加入noresize后标记的框架无法拖动边框来修改大小&nbsp;--> &nbsp;&nbsp;<frame&nbsp;src="1.html"&nbsp;noresize="noresize"&nbsp;/> &nbsp;&nbsp;<frame&nbsp;src="2.html"&nbsp;/> &nbsp;&nbsp;<frame&nbsp;src="3.html"&nbsp;/> </frameset> </html></pre><p><strong>内联框架</strong></p><h3>添加 iframe 的语法</h3><pre><iframe&nbsp;src="URL"></iframe></pre><p><em>URL</em>指向隔离页面的位置。</p><h3>Iframe - 设置高度和宽度</h3><p>height 和 width 属性用于规定 iframe 的高度和宽度。</p><p>属性值的默认单位是像素,但也可以用百分比来设定(比如 "80%")。</p><h3>Iframe - 删除边框</h3><p>frameborder 属性规定是否显示 iframe 周围的边框。</p><p>设置属性值为 "0" 就可以移除边框:</p><h3>使用 iframe 作为链接的目标</h3><p>iframe 可用作链接的目标(target)。</p><p>链接的 target 属性必须引用 iframe 的 name 属性:</p><pre><html> <body> <!--&nbsp;设置内联框架的指向为1.html&nbsp;名字是test&nbsp;--> <iframe&nbsp;src="1.html"&nbsp;name="test"></iframe> <!--&nbsp;添加的链接名称为Baidu,链接内联网页test,地址为Baidu网址&nbsp;, 点击后在内联框架中跳至Baidu&nbsp;--> <p><a&nbsp;href="http://www.baidu.com"&nbsp;target="test">Baidu</a></p> <p><b>注释:</b>由于链接的目标匹配&nbsp;iframe&nbsp;的名称,所以链接会在&nbsp;iframe&nbsp;中打开。</p> </body> </html></pre><p></p><h3>背景(Backgrounds)</h3><p><body> 拥有两个配置背景的标签。背景可以是颜色或者图像。</p><h4>背景颜色(Bgcolor)</h4><p>背景颜色属性将背景设置为某种颜色。属性值可以是十六进制数、RGB 值或颜色名。</p><h4>背景(Background)</h4><p>背景属性将背景设置为图像。属性值为图像的URL。如果图像尺寸小于浏览器窗口,那么图像将在整个浏览器窗口进行复制。</p><pre><body&nbsp;background="clouds.gif"> <body&nbsp;background="/file/tupian/20230130/247494.jpg"></pre><p>URL可以是相对地址,如第一行代码。也可以使绝对地址,如第二行代码。</p><p>提示:如果你打算使用背景图片,你需要紧记一下几点:</p><ul><li><p>背景图像是否增加了页面的加载时间。小贴士:图像文件不应超过 10k。</p></li><li><p>背景图像是否与页面中的其他图象搭配良好。</p></li><li><p>背景图像是否与页面中的文字颜色搭配良好。</p></li><li><p>图像在页面中平铺后,看上去还可以吗?</p></li><li><p>对文字的注意力被背景图像喧宾夺主了吗?</p></li></ul><p></p><h3>基本的注意事项 - 有用的提示:</h3><p><body> 标签中的背景颜色(bgcolor)、背景(background)和文本(text)属性在最新的 HTML 标准(HTML4 和 XHTML)中已被废弃。W3C 在他们的推荐标准中已删除这些属性。</p><p>应该使用层叠样式表(CSS)来定义 HTML 元素的布局和显示属性。</p><p><strong>颜色由红色、绿色、蓝色混合而成。</strong></p><h3>颜色值</h3><p>颜色由一个十六进制符号来定义,这个符号由红色、绿色和蓝色的值组成(RGB)。</p><p>每种颜色的最小值是0(十六进制:#00)。大值是255(十六进制:#FF)。</p><h3>颜色名</h3><p>大多数的浏览器都支持颜色名集合。</p><p>提示:仅仅有 16 种颜色名被 W3C 的 HTML4.0 标准所支持。它们是:aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, yellow。</p><p>如果需要使用其它的颜色,需要使用十六进制的颜色值。</p><p>创新互联www.cdcxhl.cn,专业提供香港、美国云服务器,动态BGP最优骨干路由自动选择,持续稳定高效的网络助力业务部署。公司持有工信部办法的idc、isp许可证, 机房独有T级流量清洗系统配攻击溯源,准确进行流量调度,确保服务器高可用性。佳节活动现已开启,新人活动云服务器买多久送多久。</p> <br> 新闻标题:HTML基础(四)-创新互联 <br> 路径分享:<a href="http://kswsj.cn/article/dpgsds.html">http://kswsj.cn/article/dpgsds.html</a> </div> </div> <div class="other"> <h3>其他资讯</h3> <ul> <li> <a href="/article/edjhhd.html">菏泽哪家换装餐厅好,文案探店记录分享</a> </li><li> <a href="/article/edjhhh.html">运城市抖音代运营公司电话</a> </li><li> <a href="/article/edjhgh.html">短视频的运营规则</a> </li><li> <a href="/article/edpooo.html">中山短视频运营价格表</a> </li><li> <a href="/article/edjhic.html">抖店代运营公司有哪些值得信赖的选择,如何选择抖店代运营公司</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:400-028-6601" target="_blank">400-028-6601</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/zuyong/" target="_blank">成都物理服务器租用</a><a href="https://www.cdcxhl.com/yunying.html" target="_blank">成都网站托管</a><a href="https://www.cdcxhl.com/app.html" target="_blank">成都app开发公司</a><a href="https://www.cdcxhl.com/tuoguan/yaan/" target="_blank">雅安云锦天府</a><a href="https://www.cdcxhl.com/tuoguan/yaan/" target="_blank">雅安服务器托管</a><a href="https://www.cdcxhl.com/" target="_blank">成都建站公司</a><a href="https://www.cdcxhl.com/xiyun.html" target="_blank">西云服务器托管</a><a href="https://www.cdcxhl.com/weihu/" target="_blank">成都网站维护公司</a><a href="https://www.cdcxhl.com/mobile.html" target="_blank">手机网站建设公司</a><a href="https://www.cdcxhl.com/shop.html" target="_blank">商城网站开发</a><a href="https://www.cdcxhl.com/" target="_blank">网站制作</a><a href="https://www.cdcxhl.com/google.html" target="_blank">谷歌推广</a><a href="https://www.cdcxhl.com/mobile.html" target="_blank">成都手机网站建设</a><a href="https://www.cdcxhl.com/gaofang/" target="_blank">高防服务器租用</a><a href="https://www.cdcxhl.com/wangzhandingzhi.html" target="_blank">成都定制网站</a><a href="https://www.cdcxhl.com/xiangyingshi.html" target="_blank">成都响应式网站建设公司</a><a href="https://www.cdcxhl.com/xiyun.html" target="_blank">西云主机托管</a><a href="https://www.cdcxhl.com/gaiban/" target="_blank">成都网站改版公司</a> </div> </div> </div> <div class="foot"> <div class="container"> <div class="footNav"> <h3>网站建设</h3> <a href="http://www.cxhljz.cn/" target="_blank">成都网站建设</a><a href="https://www.cdxwcx.com/city/shifang/" target="_blank">什邡网站建设</a><a href="http://www.scjiangyou.cn/" target="_blank">江油网站建设</a> </div> <div class="footNav"> <h3>服务器托管</h3> <a href="https://www.cdxwcx.com/jifang/guanghua.html" target="_blank">光华服务器托管</a><a href="https://www.cdcxhl.com/jigui/" target="_blank">机柜租用</a><a href="https://www.cdcxhl.com/jigui/" target="_blank">服务器托管机柜</a> </div> <div class="footNav"> <h3>网站制作</h3> <a href="http://www.cdxwcx.cn/bj/" target="_blank">网站制作价格</a><a href="https://www.cdcxhl.com/mobile.html" target="_blank">手机网站制作设计</a><a href="http://www.cqcxhl.com/" target="_blank">重庆网站制作</a> </div> <div class="footNav"> <h3>企业服务</h3> <a href="https://www.cdcxhl.com/service/shipinxuke.html" target="_blank">食品经营许可证</a><a href="https://www.cdcxhl.com/weihu/chengdu.html" target="_blank">成都网站维护</a><a href="https://www.cdcxhl.com/link/" target="_blank">友情链接购买</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="">小程序开发</a>、<a href="">APP开发</a>、 <a href="">营销型网站建设</a>、<a href="">网站建设</a>、 <i><a href="">网站定制开发</a></i> ,就选<a href="">创新互联</a> </p> </div> </div> </div> <div class="bottom container"> <p class="fl"> 版权所有:成都创新互联科技有限公司 备案号:<a href="https://beian.miit.gov.cn/" target="_blank" rel="nofollow">蜀ICP备19037934号</a> 服务热线:028-86922220 </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="https://p.qiao.baidu.com/cps/mobileChat?siteId=11284691&userId=6256368&type=1&reqParam=%20{%22from%22:0,%22sessionid%22:%22%22,%22siteId%22:%2211284691%22,%22tid%22:%22-1%22,%22userId%22:%226256368%22,%22ttype%22:1,%22siteConfig%22:%20{%22eid%22:%226256368%22,%22queuing%22:%22%22,%22siteToken%22:%226ce441ff9e2d6bedbdfc2a4138de449e%22,%22userId%22:%226256368%22,%22isGray%22:%22false%22,%22wsUrl%22:%22wss://p.qiao.baidu.com/cps3/websocket%22,%22likeVersion%22:%22generic%22,%22siteId%22:%2211284691%22,%22online%22:%22true%22,%22webRoot%22:%22//p.qiao.baidu.com/cps3/%22,%22bid%22:%22160142915792139572%22,%22isSmallFlow%22:0,%22isPreonline%22:0,%22invited%22:0%20},%22config%22:%20{%22themeColor%22:%224d74fa%22%20}%20}&appId=&referer=&iswechat=0&expectWaiter=-1&openid=null&otherParam=null&telephone=null&speedLogId=null&eid=null&siteToken=6ce441ff9e2d6bedbdfc2a4138de449e" 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>