HTML iframe marginwidth 属性
最后更新于:2022-03-26 23:09:57
HTML <iframe> marginwidth 属性
HTML <iframe> 标签
实例
带有 50 像素左侧和右侧空白边距的 <iframe>:
<iframe src=”demo_iframe.htm” marginwidth=”50″>
</iframe>
尝试一下 »
浏览器支持





所有主流浏览器都支持 marginwidth 属性。
定义和用法
HTML5 不支持 <iframe> marginwidth 属性。请使用 CSS 代替。
marginwidth 属性规定 <iframe> 内容的左侧和右侧的空白边距,以像素计。
语法
<iframe marginwidth=”pixels“>
属性值
值 |
描述 |
pixels |
规定 <iframe> 内容的左侧和右侧的空白边距,以像素计。 |
HTML <iframe> 标签