input框

2019-06-27  本文已影响0人  Lzg

基本表单标签

<input type="text" >
     单行文本框

<input type="password"> 
       密码框 

<input type="radio" id="boy" name="sex" checked> 
       单选框 
                                   属性:
                                         checked :选中 

<input type="checkbox"> 
      多选框 

下拉列表

      <select name="" id="">
         <option value="">列表1</option> 
         <option value="">列表2</option>
         <option value="">列表3</option> 
         <option value="" selected>列表4</option> 
      </select> 
                    属性:

                          selected :选中状态

<input type="submit">  
      提交按钮

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

 <button>普通按钮</button>
    简写

 <input type="reset"> 
    重置按钮

文本域:

<textarea name="" id="" cols="30" rows="10" maxlength="100">
</textarea> 
cols="30"  宽度
rows="10"  高度
maxleangth="100"输大最多字数。

文件域:

<input type="file">
上一篇 下一篇

猜你喜欢

热点阅读