HTML 導航架構 (使用 Frame )

來源:互聯網
上載者:User

標籤:style   ref   項目   屬性   name   輸出   需要   oql   content   

文章出處  :  http://blog.sina.com.cn/s/blog_6f6d07f80100oqlt.html  (本文轉自此部落格)

 

 

在瀏覽網頁時,我們經常會看到一個導航條,當點擊導航條上的項目時,相應網頁會在顯示地區變換顯示。首先準備一個主介面檔案main.htm,將其劃分成兩塊地區index和content.<html><frameset cols="120,*"><frame name="index" src="index.htm" /><frame name="content" src="frame_a.htm" /></frameset></html>    其中index地區連結index.htm檔案,主要是一些連結專案;content地區負責顯示相應連結檔案,初始顯示連結為frame_a.htm. 
name="index"是標明index地區的屬性,name="content"是標明content地區的屬性。 那麼如何將index.htm中的連結輸出到content地區顯示呢?這裡需要設定連結中的target屬性。代碼如下:<html><head></head><body> <a href="frame_a.htm" target="content">frame_a</a> <a href="frame_b.htm" target="content">frame_b</a> <a href="frame_c.htm" target="content">frame_c</a></body></html>

 

 

如下貼出:

 

 

 

 

文章出處  :  http://blog.sina.com.cn/s/blog_6f6d07f80100oqlt.html  (本文轉自此部落格)

HTML 導航架構 (使用 Frame )

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.