表单

input type="text" size=50px  //  文本框的长度 只能是 size  不能是width

 

<hr>
<input type="submit">
<input type="reset">
<input type="button" VALUE="按钮"> //不会自带文字

<button type="submit">提交</button>
<button type="reset">重置</button>
<button type="button">按钮 </button>


<input type="text " size="50">
<input type="text" maxlength="10" >
<input type="text" value="初始值">
<input type="text" placeholder="请输入">
<input type="text" readonly>
<input type="text" disabled>
<input type="number" step="2" min="10" max="100">

体育<input type="CheckBox">音乐 <input type="checkbox">


<input type="file" required >//reuired 表示必须输入一个值

<input type="file" required >
<input type="search" >//search表示加个叉
<input type="password" placeholder="密码" readonly disabled size="30px" value="123123" required>

<select name="fruit" id="" size="30px" autofocus required >
<option value="">苹果</option>
<option value="">橘子</option>

 


posted @ 2018-09-04 09:20  木丁  阅读(80)  评论(0编辑  收藏  举报