表单主要功能是用来与用户做交流的一个网页控件,良好的表单设计能够让网页与用户更好的沟通。表单中常见的元素主要包括:文本输入框下拉选择框、单选按钮、复选按钮文本域按钮等。其中每个控件所起的作用都各不相同,而且不同的浏览器对表单控件渲染的风格都各有不同。

  

<form role="form">
        <div class="form-group">
            <label for="exampleInputEmail1">邮箱:</label>
            <input type="email" class="form-control" id="exampleInputEmail1" placeholder="请输入您的邮箱地址"/>
        </div>
        <div class="form-group">
            <label for="exampleInputPassword1">密码</label>
            <input type="password" class="form-control" id="exampleInputPassword1" placeholder="请输入您的邮箱密码"/>
        </div>
        <div class="checkbox">
            <label>
                <input type="checkbox"/>
                记住密码
   
            </label>
        </div>
        <button type="submit" class="btn btn-default">进入邮箱</button>
    </form>
基础表单

相关文章:

  • 2021-11-16
  • 2021-06-12
  • 2022-02-11
  • 2021-05-30
  • 2021-10-19
  • 2022-12-23
  • 2021-06-12
  • 2021-10-19
猜你喜欢
  • 2021-12-31
  • 2021-12-31
  • 2021-12-03
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
相关资源
相似解决方案