HBCMS更多的中文手册参考:

SIZE Attribute | size参数属性

DHTML文档教程

Sets or retrieves the size of the control.

dhtml语法

HTML<ELEMENT SIZE = iSize... >
Scriptingobject.size [ = iSize ]

DHTML可能的值

iSizeInteger 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 Non-Microsoft link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text

更多语法参考

maxLength