內聯架構iframe的使用

來源:互聯網
上載者:User

 

使用iframe可以在一個表格內調用一個外部檔案,非常有用。很多網站頁面上都使用了iframe效果。

  iframe標記的常用屬性是:
  <Iframe src="URL" width="x" height="x" scrolling="[OPTION]" frameborder="x" name="main"></iframe>

  src:檔案的路徑,既可是HTML檔案,也可以是文本、ASP等;

  width、height:"內部架構"地區的寬與高;

  scrolling:當SRC的指定的HTML檔案在指定的地區不顯不完時,滾動選項;
                    如果為 NO,則不出現捲軸;
                    如果為Yes,則顯示;
                    如果為 Auto:則自動出現捲軸

  FrameBorder:設定或擷取是否顯示架構的邊框。(1,0 或 no,yes)

    name:架構的名字,用來進行識別。

例如: 
<Iframe src="http://campo.3322.net" width="250" height="200" scrolling="Auto" frameborder="0" name="main"></iframe>

當你想用父架構控制內部架構時,可以使用: target="架構的名字"來控制。

參考:ASP.NET主介面架構的設定

ASP.NET下面主介面的架構,現在瞭解下來有這麼幾種方法:

    1. 一種是用FrameSet的方法,

    2. ASP.NET Starter Kit中的方法是動態裝入使用者控制項。

    3. 使用 Master Pages 方法:
       在ASP.NET2.0中使用Master Pages的方案:
       http://www.cnblogs.com/xugang/admin/
       http://www.cnblogs.com/dudu/articles/1503.html

       在ASP.NET1.1中有一個類似的方案:
       http://www.cnblogs.com/dudu/articles/1503.aspx
       http://www.asp.net/ControlGallery/ControlDetail.aspx?Control=385&tabindex=2

相關文章推薦:
Iframe的基礎應用——關於Iframe刷頁問題的兩種方法
Asp.Net iframe Cookie 域的問題
iframe 高度自動調節最簡單解決
asp.net頁面中Menu控制項下拉式功能表被frame擋住和iframe自適應高度的解決辦法

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.