HTML <iframe> 標簽
屬性 | 值 | 描述 |
---|---|---|
align | left / right / top / middle / bottom | 框架齊此 |
frameborder | 1 / 0 | 框架的邊框 |
height | pixels / % | iframe 的高度 |
longdesc | URL | iframe 的較長描述 |
marginheight | pixels | iframe 的頂部和底部的邊距 |
marginwidth | pixels | iframe 的左側和右側的邊距 |
name | frame_name | iframe 的名稱。 |
sandbox | ""
allow-forms allow-same-origin allow-scripts allow-top-navigation |
啟用一系列對 <iframe> 中內容的額外限制 iframe 內容被視為與包含文檔有相同的來源 內容從包含文檔導航(加載)內容 允許表單提交 允許腳本執行 |
scrolling |
|
iframe 中顯示滾動條 |
seamless | seamless | 規定 <iframe> 看上去像是包含文檔的一部分。 |
src | URL | 規定在 iframe 中顯示的文檔的 URL |
srcdoc | HTML_code | 規定在 <iframe> 中顯示的頁面的 HTML 內容 |
width |
|
定義 iframe 的寬度 |
00
00
iframe youtube
playlist=XXXXXXX; loop=1 重複播放。rel=0 不顯影片完結推廣。
autoplay=1 自動播放(前面先加 rel=0)。
controls=0 不顯示播放器控制選項。
showinfo=0 不顯示影片標題及播放器操作選項。
mute=1 影片當背景,並靜音。
<iframe id="ifsrc" width="800" height="500" src="
https://www.youtube.com/embed/V7SlOu4ItNE?list=PLJ5y6u1VCeq-FtkqVcwLl3HuGZjhL3nIV;rel=1" ></iframe >
沒有留言:
張貼留言