集册 HTML 标签教程 HTML <frame> marginwidth 属性

HTML <frame> marginwidth 属性

Xebcnor     最近更新时间:2019-09-19 07:39:47

409

HTML <frame> marginwidth 属性

HTML frame 标签参考手册 HTML <frame> 标签

实例

第一个框架的左边距和右边距是 50 像素,第二个框架的左边距和右边距是 0 像素:

<frameset cols="50%,50%">
  <frame src="frame_a.htm" marginwidth="50">
  <frame src="frame_b.htm" marginwidth="0">
</frameset>

运行实例

浏览器支持

Internet ExplorerFirefoxOperaGoogle ChromeSafari

所有主流浏览器都支持 marginwidth 属性。

定义和用法

HTML5 不支持 <frame> 标签。

marginwidth 属性规定框架内容与框架的左侧和右侧之间的高度,以像素计。

语法

<frame marginwidth="pixels">

属性值

展开阅读全文