<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)<frameset>意为把页面分解成一定部分,让每一部分显示不同的内镶框架,如(请复制到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;"><html>
<frameset rows="25%,50%,25%">
<frame src="http://blog.sina.com.cn/yefeng9393">
<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; ">"></span><span style="font-family:simsun;">
<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; ">"></span><span style="font-family:simsun;">
</span><span style="font-family:simsun;"></frameset>
</html></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;"><html>
<frameset cols="25%,50%,25%">
<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; ">"></span><span style="font-family:simsun;">
</span><span style="font-family:simsun;"> <frame src="http://blog.sina.com.cn/yefeng9393">
<frame src="http://blog.sina.com.cn/yefeng9393">
</frameset>
</html></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)<iframe> 指用一定尺寸的框架,来定义页面里内镶的框架,如(复制到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"><html>
<iframe src="http://blog.sina.com.cn/yefeng9393" width="500px" height="400px">
<p>您的浏览器不支持iframe!</p>
</iframe>
</html></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>
HTML标签天天练6--<frameset><frame><iframe>网页框架
最新推荐文章于 2019-02-28 09:17:17 发布