type              指定元素的类型。{ text、password、checkbox、radio、submit、reset、file、hidden、image 和 button,默认值为 text }
name            指定表单元素的名称
value             元素的初始值。type 为 radio时必须指定一个值
size               指定表单元素的初始宽度。当 type 为 text 或 password时,表单元素的大小以字符为单位;对于其他类型,宽度以像素为单位
maxlength     type为text 或 password 时,输入的最大字符数
checked        type为radio或checkbox时,指定按钮是否是被选中

posted on 2020-07-06 21:27  云梦曦  阅读(176)  评论(0编辑  收藏  举报