Sets or retrieves the size of the control.
dhtml语法
HTML | <ELEMENT SIZE
= iSize... >
|
---|
Scripting | object.size [ = iSize ] |
---|
DHTML可能的值
iSize | Integer that
specifies or receives the size, in characters. |
The property is read/write.
The property has no default value.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see about dynamic properties.
remarks
although this property is read/write, no change is visible when you set the size of the input type=reset, input type=submit, and input type=image objects. however, you can detect a change to the size property for these objects in code.
for the input type=text object, the size is in characters and represents the width of the text box. when the size is specified, the select object represents a list box with the specified number of rows.
是否符合公共标准
This property is defined in
HTML 3.2 and
is defined in
World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
更多语法参考
maxLength