Sets or retrieves the horizontal margin for the object.
dhtml语法
HTML | <ELEMENT HSPACE
= iMargin... >
|
---|
Scripting | object.hspace [ = iMargin ] |
---|
DHTML可能的值
iMargin | Integer that
specifies or receives the horizontal margin, in pixels. |
The property is read/write.
The property has a default value of
0.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see about dynamic properties.
remarks
this property is similar to the border property, except the margins do not have color when the element is a link.
when this property is set dynamically for an img or iframe object, the property value will be updated but the display will show no visible change.
是否符合公共标准
This property is deprecated in
HTML and
is defined in
World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
更多语法参考
vspace