表单控件

走远了吗. 提交于 2020-01-03 07:48:56

单行文本框:

<input type="text" value="text">

密码文本框:

<input type="password" >

命令按钮:

<input type="button" value="按钮">

提交命令按钮:

<input type="submit">

重置命令按钮:

<input type="reset">

文件上传输入:

<input type="file">

文本区:
<textarea cols="10" rows="5"></textarea>

隐藏元素:

<input type="hidden">

列表框:

<select size="2">

<option selected="select">选择1</option>

<option>选择2</option>

</select>

下拉列表框:(单选列表框)

<select >

<option>选择1</option>

<option selected="selected">选择2</option>

</select>

复选(列表框)

<select size="2"multiple="multiple">

<option>选择1</option>

<option selected="selected">选择2</option>

</select>

单选按钮:

<input type="radio" checked="checked">选择1

<input type="radio" >选择2

<input type="radio" >选择3

复选框:

<input type="checkbox" checked="checked">选择1

<input type="checkbox" >选择2

<input type="checkbox" checked="checked>选择3

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!