摘要: 1、:require(必填)和:optional(选填) <style> .container{ max-width:400px; margin:20px auto; } input,select,textarea{ width: 240px; margin:10px 0; border:1px s 阅读全文
posted @ 2018-10-22 16:34 键1234 阅读(451) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-10-22 13:32 键1234 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 基本表单验证特性 placeholder 提示输入 autoconplete 下次输入自动提示 list和datalist 下拉菜单 autofocus 自动获取焦点 required 设置必填属性 pattern 表单认证使用正则 novalidate(form标签后使用)、formnovalid 阅读全文
posted @ 2018-10-22 13:04 键1234 阅读(408) 评论(0) 推荐(0) 编辑