Blogger Information
Blog 16
fans 0
comment 1
visits 16949
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
控件元素和常用属性
半生
Original
1027 people have browsed it

示例1:

用户注册表单

<body>
<h3 class="">用户注册</h3>
<!-- 表单 -->
<form action="check.php" method="POST" class="register">
<!-- 文本框 -->
<label for="usename">账号</label>
<!-- 控件 -->
<!-- blur:失去焦点事件 -->
<input type="text id=usename" name="usename" value="" placeholder="至少6位" autofocus required onblur="isEmpty(this)" />

<!-- 昵称 -->
<label for="nickname">昵称</label>
<!-- 控件 -->
<!-- blur:失去焦点事件 -->
<input type="text id=nickname" name="nickname" value="" placeholder="至少两字符" required onblur="isEmpty(this)" />


<!-- 邮箱型文本框一个,表单只能有一个焦点 -->
<label for="email"">邮箱</label> <!-- 控件 --> <input type="email id=email" name="email" value="" placeholder="****@email.com" required onblur="isEmpty(this)" /> <!-- 密码框 --> <label for="password1"">密码</label>
<!-- 控件 -->
<input type="password id=password1" name="password1" value="" placeholder="至少六位且包含数字字母" required onblur="isEmpty(this)" />

<!-- 密码确认框 -->
<label for=”password2””>确认</label>
<!-- 控件 -->
<input type="password id=password2" name="password2" value="" placeholder="***********" required onblur="isEmpty(this)" />

<button>提交</button>
</form>
</body>

Correcting teacher:天蓬老师天蓬老师

Correction status:unqualified

Teacher's comments:原因你应该知道, 下次不要这样
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post