input框

作者: Lzg | 来源:发表于2019-06-27 11:07 被阅读0次

基本表单标签

<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">

相关文章

网友评论

      本文标题:input框

      本文链接:https://www.haomeiwen.com/subject/sgelcctx.html