html中form標籤的子標籤的使用
阿新 • • 發佈:2018-12-30
1.文字框
<input type="text"/>
2.密碼框
<input type="password"/>
3.單選按鈕
<input type="radio" name="sex"/> 注:如果設定多個單選按鈕name屬性值一定要保持一致,否者就會選擇多個
4.複選框
<input type="checkbox"/>
5.下拉列表
<select>
<option>四川</option>
</select>省
6.文字域
<textarea rows="3" cols="60" style="resize:none;"></textarea>
7.影象標籤
<img src="images/1.png" width="300" height="200"/>
8.檔案框
<input type="file"/>
9.三種按鈕(普通,提交,重置)
<input type="button" value="普通按鈕"/> <input type="submit" value="提交按鈕"/> <input type="reset" value="重置按鈕" style="disabled:true;color:gray;"/>
影象效果