English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
HTML object align Eigenschaft
Online-Beispiel
Beispiel <!DOCTYPE html> <html> <head> - <title>HTML:<object> align Eigenschaft3codebox.com)</title> </head> <body> <h4>Objekt mit "align="left":</h4> <p>This is some text. <object width="200" height="200" align="left" data="bookmark.swf"></object> This is some text.</p> <p>This is some text. This is some text.</p> </body> </html>Testen Sie das hier ›/›
IEFirefoxOperaChromeSafari
Alle gängigen Browser unterstützen die Eigenschaft "align".
HTML5 Die Eigenschaft "align" von <object> wird nicht unterstützt. Verwenden Sie stattdessen CSS.
in HTML 4.01 Die Eigenschaft "align" von <object> ist veraltet.
The align attribute specifies the alignment of the <object> element based on surrounding elements.
The <object> element is an inline element (it does not insert a new line on the page), which means text and other elements can wrap around it. Therefore, specifying the alignment of <object> based on surrounding elements may be useful.
in HTML 4.01 in which, the align attribute of <object> is deprecated. Please use CSS instead.
CSS Syntax: <object style="float:right">
CSS Example: Float an <object> to the right
In our CSS tutorial, you will see more about float Attribute details.
<object align="left|right|middle|top|bottom">
Value | Description |
---|---|
left | Align objects to the left. |
right | Align objects to the right. |
middle | Center align objects. |
top | Align objects upwards. |
bottom | Align objects downwards. |