表单
15
表单
<form>
用户名称:<input type="text" value="xxxx"/><br/> 文本输入框
密码:<input type="password" value="null"/><br/>密码输入框
性别:<input type="radio" name="sex" checked="checked"/>nan<intput type="radio" name="sex"/> nv 单选框
这里name'设置后就知道了他俩是一个组的 只能选中一个 checked 表示默认选中的
爱好 :<input type="checkbox"/>java<input type="checkbox"/>c++ 复选框
国籍:<select>
<option>===请选择===</option>
<option select="select">===中国===</option> 默认选中
<option>===日本===</option>
</select>
评价 <textarea rows="xx" clos="20"> 这里填写默认值 </textarea> 多行文本输入 最多几行 几列
<input type="reset" value="重置"/>
<input type="submit" value="提交"/> 提交
<input type="button" value="按钮"/>
<input type="file" value="提交文件"/> 可以从本地选中文件上传到服务端
<input type="hidden" name="abc" value="隐藏"/> 就是看不到的 不是把别人隐藏了 不想让用户看到的
</from>

浙公网安备 33010602011771号