iframe 標籤 — 代表HTML內聯架構

來源:互聯網
上載者:User

iframe標籤是成對出現的,以<iframe>開始,</iframe>結束 iframe標籤內的內容可以做為瀏覽器不支援iframe標籤時顯示 屬性

  • Common -- 一般屬性
  • name -- 定義了內容頁名稱,此名稱在架構頁內連結時使用到
  • src -- 定義了內容頁URL(同frame標籤)
  • frameborder -- 定義了內容頁的邊框,取值為(1|0),預設值為1
    • 1 -- 在每個頁面之間都顯示邊框
    • 0 -- 不顯示邊框
  • height -- 架構的高度,取值像素或百分比
  • width -- 架構的寬度,取值像素或百分比
  • marginwidth -- 定義了架構中HTML檔案顯示的左右邊界的寬度,取值為px,預設值由瀏覽器決定
  • marginheight -- 定義了架構中HTML檔案顯示的上下邊界的寬度,取值為px,預設值由瀏覽器決定
  • scrolling -- 定義是否有捲軸,取值為(yes|no|auto),預設值為auto
    • yes -- 顯示捲軸
    • no -- 不顯示捲軸
    • auto -- 當需要時再顯示捲軸
  • align -- 垂直或水平對齊
  • longdesc -- 定義架構頁的說明

例:<iframe marginwidth='0' frameborder='0' scrolling='no' width='1003' height='155' src='http://www.xzsec.com/foot.htm'></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.