HTML5 表单属性
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
开发工具与关键技术:VS
作者:胡
撰写时间:2022/5/18
autocomplete 属性
autocomplete 属性规定 form 或 input 域应该拥有自动完成功能。
当用户在自动完成域中开始输入时,浏览器应该在该域中显示填写的选项:
autofocus 属性
autofocus 属性规定在页面加载时,域自动地获得焦点。
form 属性
form 属性规定输入域所属的一个或多个表单。
form 属性必须引用所属表单的 id:
表单重写属性
表单重写属性(form override attributes)允许您重写 form 元素的某些属性设定。
表单重写属性有:
- formaction - 重写表单的 action 属性
- formenctype - 重写表单的 enctype 属性
- formmethod - 重写表单的 method 属性
- formnovalidate - 重写表单的 novalidate 属性
- formtarget - 重写表单的 target 属性
height 和 width 属性
height 和 width 属性规定用于 image 类型的 input 标签的图像高度和宽度。
list 属性
list 属性规定输入域的 datalist。datalist 是输入域的选项列表。