HTML object vspace attributes
Examples
The top and bottom margin to 100 pixels of an object:
<p><object width="150" height="150" data="helloworld.swf" vspace="100"></object>
This is some text. This is some text. This is some text.</p>
This is some text. This is some text. This is some text.</p>
try it"
Browser Support
All major browsers support vspace attributes.
Definition and Usage
HTML5 does not support the <object> vspace attributes. Use CSS instead.
In HTML 4.01, <object> the vspace attribute obsolete .
vspace attribute specifies the blank top and bottom of the object.
Compatibility Notes
In HTML 4.01, <object> the vspace attribute is deprecated. Use CSS instead.
CSS Syntax: <object style = "margin: 100px 0px">
CSS Example: with a margin <object>
In our CSS tutorial you can find more information about the margin property detail.
grammar
<object vspace="pixels">
Property Value
值 | 描述 |
---|---|
pixels | 对象顶部和底部的空白,以像素计。 |
HTML <object> tag