<a href="http://blog.51cto.com/attachment/201207/162907888.png" target="_blank"></a>
2.架構的基本結構:
<a href="http://blog.51cto.com/attachment/201207/163035312.png" target="_blank"></a>
注意事項:1.架構網頁是沒有body的!!!!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=GBK" />
<title>架構網頁-cols</title>
</head>
<frameset rows="80,*" border="5">
<frame name="top" src="top.html"/>
<frameset cols="400,*">
<frame name="left" src="http://www.baidu.com"/>
<frame name="right" src="http://www.google.com.hk"/>
</frameset>
</frameset>
</html>
注意事項:如果你想讓架構網頁之間的邊框消失,要在frame标簽中加上frameborder="0"這個屬性!!
如果你不想架構網頁之間的邊框可以被随意拖動,那麼你需要再frame标簽中加上noresize="noresize"這個屬性!
eg.
<frame name="top" src="http://www.sina.com" frameborder="0"/>
<frame name="left" src="http://www.baidu.com" frameborder="0"/>
<frame name="right" src="http://www.w3school.com.cn/" frameborder="0" noresize="noresize"/>
3.架構網頁中的超連結:
<a href="http://blog.51cto.com/attachment/201207/165253557.png" target="_blank"></a>
target="blank" → 新視窗
target="parent" → 父視窗
target="right" → 去架構中的某個name="right"的視窗。當然,還可以有left,top等。
3.當你想在普通網頁中引入其他的網頁時,可以用iframe這個标簽!
用法:
<html xmlns="http://www.w3.org/1999/xhtml">
<title>iframe</title>
<body>
<iframe src="http://www.baidu.com" frameborder="2" width="200" height="200" scrolling="no"/>
它的一些屬性:
<a href="http://blog.51cto.com/attachment/201207/171013110.png" target="_blank"></a>
本文轉自韓立偉 51CTO部落格,原文連結:http://blog.51cto.com/hanchaohan/927271,如需轉載請自行聯系原作者