HTML DOM IFrame align property
Definition and Usage
align property sets or returns the value of the iframe element align attribute.
align attribute specifies how to arrange according to the surrounding text iframe.
Tip: iframe element is an inline element (it's not insert a new line on the page), which means text and other elements can be around it.Therefore, it can be arranged iframe according to the surrounding text.
grammar
iframeObject.align=value
align attribute can have the following values:
值 | 描述 |
---|---|
left | iframe 左对齐 |
right | iframe 右对齐 |
middle | iframe 居中对齐 |
top | iframe 顶部对齐 |
bottom | iframe 底部对齐 |
Browser Support
All major browsers support align attribute
Examples
Frame / IFrame objects