3 回答

TA貢獻1828條經(jīng)驗 獲得超6個贊
<iframe src="你要嵌套的頁面.html" frameborder="0" width="300" scrolling="No" height="200" leftmargin="0" topmargin="0"></iframe>
scrolling禁止鼠標(biāo)滑動,frameborder嵌套頁面邊框,leftmargin左邊距; topmargin上邊距

TA貢獻1883條經(jīng)驗 獲得超3個贊
用iframe 元素會創(chuàng)建包含另外一個文檔的內(nèi)聯(lián)框架(即行內(nèi)框架)。
下面是 iframe的屬性與值以及描述
align left,right,top,middle,bottom 不贊成使用。請使用樣式代替。規(guī)定如何根據(jù)周圍的元素來對齊此框架。
frameborder 10 規(guī)定是否顯示框架周圍的邊框。
height pixels% 規(guī)定 iframe 的高度。
longdesc URL 規(guī)定一個頁面,該頁面包含了有關(guān) iframe 的較長描述。
marginheight pixels 定義 iframe 的頂部和底部的邊距。
marginwidth pixels 定義 iframe 的左側(cè)和右側(cè)的邊距。
name frame_name 規(guī)定 iframe 的名稱。
sandbox ""allow-formsallow-same-originallow-scriptsallow-top-navigation 啟用一系列對 <iframe> 中內(nèi)容的額外限制。
scrolling yesnoauto 規(guī)定是否在 iframe 中顯示滾動條。
seamless seamless 規(guī)定 <iframe> 看上去像是包含文檔的一部分。
src URL 規(guī)定在 iframe 中顯示的文檔的 URL。
srcdoc HTML_code 規(guī)定在 <iframe> 中顯示的頁面的 HTML 內(nèi)容。
width pixels% 定義 iframe 的寬度。
添加回答
舉報