有谁可以告诉我IFRAME标记有哪些属性?先谢了!

xiao_yu 2002-07-24 10:54:49
一个小时内帮我列出所有属性,即可得到50分。
...全文
93 点赞 收藏 7
写回复
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
尘雨 2002-07-24
IFRAME

--------------------------------------------------------------------------------

Description

Creates inline floating frames.

Remarks

This element is a block element.

The IFrame functions as a document within a document. Consequently, access to the IFrame object is provided through the frames collection. Use the frames collection to read or write to elements contained in an IFrame.

属性

align, className, dataFld, dataSrc, document, frameBorder, frameSpacing, hspace, id, innerHTML, innerText, isTextEdit, lang, language, marginHeight, marginWidth, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, outerHTML, outerText, parentElement, parentTextEdit, scrolling, sourceIndex, src, style, tagName, title, vspace

方法

contains, getAttribute, insertAdjacentHTML, insertAdjacentText, removeAttribute, scrollIntoView, setAttribute

集合
all, children

回复
meizz 2002-07-24
你自己到MSDN里去查嘛!

ALIGN=ABSBOTTOM | ABSMIDDLE | BASELINE | BOTTOM | LEFT | MIDDLE | RIGHT | TEXTTOP | TOP

Specifies the alignment for the control-like element.

BORDER=pixels Specifies the thickness of a border to be drawn around the element. The default is 0.

BORDERCOLOR=color Sets border color and must be used with the BORDER attribute, except for frames. For a complete list of colors, look at the Internet Explorer color table.

CLASS=classname Specifies the class of the tag being defined. This is used to associate a sub-classed style sheet with the tag.

DATAFLD=colname The column name from the data source object that supplies the bound data.

DATASRC=#ID Indicates the ID of the data source object that supplies the data that is bound to this element.

FRAMEBORDER=NO | YES | 0 | 1 Specifies whether or not to display a 3-D border around the frame. "YES" or 1 causes a border to be displayed (default). "NO" or 0 displays no border.

FRAMESPACING=pixels Creates additional space between the frames.

HEIGHT=n Along with WIDTH, specifies the size at which the element is drawn. This attribute may be initially set in pixels or percentages.

HSPACE=pixels Along with VSPACE, specifies margins for the element.

ID=value An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position.

LANG=language Specifies which language to use in ISO standard language abbreviation form.

LANGUAGE=JAVASCRIPT | JSCRIPT | VBS | VBSCRIPT Specifies the language the current script is written in and invokes the proper scripting engine. The default value is JAVASCRIPT. JAVASCRIPT, JSCRIPT The scripting language is written in JavaScript.

VBS, VBSCRIPT The scripting language is written in VBScript.

MARGINHEIGHT=pixels Sets the amount of top and bottom margin should be set before displaying the text in a frame.

MARGINWIDTH=pixels Sets the amount of left and right margin should be set before displaying the text in a frame.

NAME=window_name | _blank | _parent | _self | _top Specifies the window or frame to target the contents at. If no frame or window exists that matches the specified target, a new window is opened for the specified link. If no target is specified, the default is "_self" for a link within the same site or "_top" if the site is external. Special target values are listed below: _blank Specifies to load the link into a new unnamed window.
_parent Specifies to load the link into the immediate parent of the document the link is in.
_self Specifies to load the link into the same window the link was clicked in.
_top Specifies to load the link into the full body of the current window.

NORESIZE When this attribute is supplied, the frame is not resizable by the user. The default behavior allows the user to resize the frame.

SCROLLING=AUTO | NO | YES Specifies that the frame can be scrolled. If set to "AUTO," the browser determines whether scrollbars are necessary (default).

SRC=url Specifies a URL for the associated file to be displayed in the frame.

STYLE=css1-properties Specifies an in-line style sheet for the tag.

TITLE=text Used to provide advisory information.

VSPACE=pixels Along with HSPACE, specifies margins for the element.

WIDTH=n Along with HEIGHT, sets the initial size of the element. This attribute may be initially set in pixels or percentages.
回复
lbqlbq 2002-07-24
到interdev里边看看,里边已经列的很全了
回复
freezwy 2002-07-24
给你个一般应用就可以了
<iframe src="xx.htm" width=300 height=200 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no bordercolor=#000000></iframe>
回复
meizz 2002-07-24
<IFRAME
ALIGN=ABSBOTTOM | ABSMIDDLE | BASELINE | BOTTOM | LEFT | MIDDLE | RIGHT | TEXTTOP | TOP
BORDER=pixels
BORDERCOLOR=color
CLASS=classname
DATAFLD=colname
DATASRC=#ID
FRAMEBORDER=NO | YES | 0 | 1
FRAMESPACING=pixels
HEIGHT=n
HSPACE=pixels
ID=value
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
MARGINHEIGHT=pixels
MARGINWIDTH=pixels
NAME=window_name | _blank | _parent | _self | _top
NORESIZE=NORESIZE | RESIZE
SCROLLING=AUTO | NO | YES
SRC=url
STYLE=css1-properties
TITLE=text
VSPACE=pixels
WIDTH=n
>
回复
meizz 2002-07-24
<IFRAME
ALIGN=ABSBOTTOM | ABSMIDDLE | BASELINE | BOTTOM | LEFT | MIDDLE | RIGHT | TEXTTOP | TOP
BORDER=pixels
BORDERCOLOR=color
CLASS=classname
DATAFLD=colname
DATASRC=#ID
FRAMEBORDER=NO | YES | 0 | 1
FRAMESPACING=pixels
HEIGHT=n
HSPACE=pixels
ID=value
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
MARGINHEIGHT=pixels
MARGINWIDTH=pixels
NAME=window_name | _blank | _parent | _self | _top
NORESIZE=NORESIZE | RESIZE
SCROLLING=AUTO | NO | YES
SRC=url
STYLE=css1-properties
TITLE=text
VSPACE=pixels
WIDTH=n
>
回复
meizz 2002-07-24
Properties:

align, className, dataFld, dataSrc, document, frameBorder, frameSpacing, hspace, id, innerHTML, innerText, isTextEdit, lang, language, marginHeight, marginWidth, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, outerHTML, outerText, parentElement, parentTextEdit, scrolling, sourceIndex, src, style, tagName, title, vspace
回复
发动态
发帖子
ASP
创建于2007-09-28

2.8w+

社区成员

ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
申请成为版主
社区公告
暂无公告