html內嵌框架
<iframe>標簽會創建包含另外一個html文件的內聯框架(即行內框架),src屬性來定義另一個html文件的引用地址,frameborder屬性定義邊框,scrolling屬性定義是否有滾動條,代碼如下:
<iframe src="http://www..." frameborder="0" scrolling="no"></iframe>
內嵌框架與a標簽配合使用
a標簽的target屬性可以將鏈接到的頁面直接顯示在當前頁面的iframe中,代碼如下:
<a href="01.html" target="myframe">頁面一</a>
<a href="02.html" target="myframe">頁面二</a>
<a href="03.html" target="myframe">頁面三</a>
<iframe src="01.html" frameborder="0" scrolling="no" name="myframe"></iframe>