E文的,不过很有用
IFRAME> NN n/a IE 3 HTML 4
End Tag: Required
An IFRAME element creates an inline frame within the natural flow of a document's content. The frame is a rectangular space into which you may load any other HTML document (or use scripts to dynamically write content to the space). If you assign a value to the NAME attribute of an IFRAME element, you may supply that name as the value of a TARGET attribute of A, FORM, or other element that lets you define a target for a destination or returned document.
Although an IFRAME element's rectangular space begins immediately following the content that comes before it (including in a line of text), all content following the end tag starts on the next line following the frame rectangle. Text leading up to the IFRAME element can be aligned in the same ways that text can be aligned around an IMG or OBJECT element.
Content between the start and end tags is ignored by browsers that support the IFRAME element. All others display such content as inline HTML content (as a way to let users know what they're missing and perhaps provide a link to related information). The Navigator 4 element that comes closest to the functionality and behavior of the IFRAME element is the ILAYER element.
Example
Object Model Reference IE [window.]document.frameName
ALIGN NN n/a IE 3 HTML 4
ALIGN="alignmentConstant" Optional
Determines how the rectangle of the IFRAME element aligns within the context of surrounding content.
Example
value
Case-insensitive constant value.
Default bottom
Object Model Reference IE [window.]document.frameName.align
BORDER NN n/a IE 4 HTML n/a
BORDER="pixelCount" Optional
Theory and practice of IFRAME element borders in Internet Explorer 4 diverge a lot, especially when trying to match behaviors across operating systems. IE 4 for the Macintosh displays IFRAME elements with a 3-D effect around the border that is always visible, no matter what border attribute settings are assigned. For the Windows 95 version, the 3-D effect goes away when you turn off the FRAMEBORDER attribute. As for the BORDER attribute, the size of the border acts as a margin setting in IE 4/Mac, but only for the top and left edges of the frame space: content is displaced to the right and down by the border size, causing the content to flow over the right and bottom edges--quite a mess. The BORDER attribute setting appears to have no effect in Windows 95. In no case does the border around an IFRAME look like a FRAME element border in IE 4.
That the HTML 4.0 specification does not include a BORDER attribute might lead one to believe it prefers the use of style sheet borders, instead of borders tied only to frames. If you want a genuine border around an IFRAME element in IE 4, use a style sheet border instead. Its behavior is far more consistent and predictable (and is thoroughly unrelated to nonfunctioning style sheet borders for frames defined by a FRAMESET).
Example
value
A positive integer value.
Default 0
Object Model Reference IE [window.]document.frameName.border
BORDERCOLOR NN n/a IE 4 HTML n/a
BORDERCOLOR="colorTripletOrName" Optional
The BORDERCOLOR attribute should assign a color to whatever border surrounds an IFRAME element. In practice, because borders controlled by attributes do not appear in the Windows 95 version of Internet Explorer 4, no color appears either. On the Macintosh side, an assigned color may appear on two adjacent edges of an IFRAME element, but the look is unpredictable. Use style sheet rules to assign borders and border colors to IFRAME elements.
Example
value
A hexadecimal triplet or plain-language color name.
Default None.
Object Model Reference IE [window.]document.frameName.borderColor
DATAFLD NN n/a IE 4 HTML n/a
DATAFLD="columnName" Optional
Used with IE 4 data binding to associate a remote data source column name in lieu of an SRC attribute for an IFRAME element. The data source column must contain a valid URI (relative or absolute). A DATASRC attribute must also be set for the element.
Example
value
Case-sensitive identifier.
Default None.
Object Model Reference IE [window.]document.frameName.dataFld
DATASRC NN n/a IE 4 HTML n/a
DATASRC="dataSourceName" Optional
Used with IE 4 data binding to specify the name of the remote ODBC data source (such as an Oracle or SQL Server database) to be associated with the element. Content from the data source is specified via the DATAFLD attribute.
Example
value
Case-sensitive identifier.
Default None.
Object Model Reference IE [window.]document.frameName.dataSrc
FRAMEBORDER NN n/a IE 3 HTML 4
FRAMEBORDER="borderSwitch" Optional
Controls whether an individual frame within a frameset displays a border. Setting IFRAME element borders via the element's attributes is chancy at best in Internet Explorer 4. Use style sheet borders instead.
Example
value
On-off values for this attribute vary with the source. HTML 4.0 specifies the values of 1 (on) and 0 (off). Navigator uses yes and no. Internet Explorer 4 accepts the HTML values and yes or no.
Default 1
Object Model Reference IE [window.]document.frameName.frameBorder
FRAMESPACING NN n/a IE 4 HTML n/a
FRAMESPACING="pixelLength" Optional
Controls the thickness of space between multiple, adjacent IFRAME elements. In practice, the attribute has no effect in Internet Explorer 4. Use style sheet border attributes to create borders around IFRAME elements.
value
A positive integer.
Default 0
Object Model Reference IE [window.]document.frameName.frameSpacing
HEIGHT, WIDTH NN n/a IE 4 HTML n/a
HEIGHT="length" WIDTH="length" Optional
Microsoft HTML documentation for IE 4 says that the HEIGHT and WIDTH attributes control the size of a IFRAME element. The attributes are recognized in IE 4 for Windows, but not for the Macintosh. Moreover, these attributes are not recognized as scriptable properties--often a sign that the attributes are not genuinely supported. Use these attributes at your own risk. Instead, you can rely on style sheet positioning (using relative positioning) to set the height and width of the element in all operating system platforms.
Example