HTML标签天天练6--<frameset><frame><iframe>网页框架

博客介绍了框架内镶功能相关标签。主要提及<frameset>标签,可将页面分解成部分显示不同内镶框架,有横向和纵向之分,使用时需去掉body标签;还介绍了<iframe>标签,用于定义页面里一定尺寸的内镶框架,此外还可定制BBS论坛主框架页面。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

<wbr style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)"><span style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)"></span><wbr style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)"><span style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)">这几个标签都属于同一类功能,就是</span><span style="color:#ED1C24; word-wrap:normal; word-break:normal; line-height:21px; font-family:simsun; font-size:14px; text-align:left; background-color:rgb(231,238,244)"><strong>框架内镶</strong></span><span style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)">功能:</span> <div style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)"> 1)&lt;frameset&gt;意为把页面分解成一定部分,让每一部分显示不同的内镶框架,如(请复制到DW尝试):</div> <div style="color:rgb(73,73,73); font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)"> <div> <textarea readonly name="code" class="html"><span style="font-family:simsun;">&lt;html&gt; &lt;frameset rows="25%,50%,25%"&gt; &lt;frame src="http://blog.sina.com.cn/yefeng9393"&gt; &lt;frame src="</span><span style="background-color: rgb(231, 238, 244); font-family: simsun; ">http://blog.sina.com.cn/yefeng9393</span><span style="background-color: rgb(231, 238, 244); font-family: simsun; ">"&gt;</span><span style="font-family:simsun;"> &lt;frame src="</span><span style="background-color: rgb(231, 238, 244); font-family: simsun; ">http://blog.sina.com.cn/yefeng9393</span><span style="background-color: rgb(231, 238, 244); font-family: simsun; ">"&gt;</span><span style="font-family:simsun;"> </span><span style="font-family:simsun;">&lt;/frameset&gt; &lt;/html&gt;</span></textarea><br><span style="font-family:simsun">——下面是</span><span style="font-family:simsun; color:rgb(255,0,0)">纵向</span><span style="font-family:simsun">内镶框架(细心的同学不难发现,区别在于 rows横向、clos纵向):</span> </div> </div> <div style="color:rgb(73,73,73); font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)"> <div> <textarea readonly name="code" class="html"><span style="font-family:simsun;">&lt;html&gt; &lt;frameset cols="25%,50%,25%"&gt; &lt;frame src="http://blog.sina.com.cn/</span><span style="background-color: rgb(231, 238, 244); font-family: simsun; ">yefeng9393</span><span style="background-color: rgb(231, 238, 244); font-family: simsun; ">"&gt;</span><span style="font-family:simsun;"> </span><span style="font-family:simsun;"> &lt;frame src="http://blog.sina.com.cn/yefeng9393"&gt; &lt;frame src="http://blog.sina.com.cn/yefeng9393"&gt; &lt;/frameset&gt; &lt;/html&gt;</span></textarea><br><span style="font-family:simsun">——</span><span style="font-family:simsun; color:rgb(255,0,0); word-wrap:normal; word-break:normal">请注意</span><span style="font-family:simsun">,用frame这类标签的时候,必须要把body标签去掉,否则在不同浏览中容易出错!</span> </div> </div> <div style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)"> <br> </div> <div style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)"> 2)&lt;iframe&gt; 指用一定尺寸的框架,来定义页面里内镶的框架,如(复制到DW中尝试):</div> <div style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)"> <div> <div> <textarea readonly name="code" class="html">&lt;html&gt; &lt;iframe src="http://blog.sina.com.cn/yefeng9393" width="500px" height="400px"&gt; &lt;p&gt;您的浏览器不支持iframe!&lt;/p&gt; &lt;/iframe&gt; &lt;/html&gt;</textarea><br> ——<span style="color:rgb(255,0,0)">此外</span>,使用frame框架功能,还可以定制成网上比较通用的BBS论坛的主框架页面,<span style="word-wrap:normal; word-break:normal">目前不在本文中描述。</span>希望有兴趣的朋友更多的去尝试和观察!</div> </div> </div> </wbr></wbr>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值