码迷,mamicode.com
首页 > 其他好文 > 详细

开发bootstrap的from表单事例

时间:2014-12-11 10:31:36      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:开发bootstrap的from表单事例   bootstrap   bootstrap开发   bootstrap的form表单开发   

<html lang="en">
<head>
    <title>form</title>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <script src="../file/jquery.js" type="text/javascript"></script>
    <link href="../book/css/bootstrap.css" rel="stylesheet" type="text/css" />
</head>
<body>
   <form class="form-inline">
     <fieldset>
        <legend>用户登录</legend>
        <div class="form-group">
            <label>用户名:</label>
            <input type="text" class="form-control" placeholder="请输入您的用户名!" />
        </div>
        <div class="form-group">
            <label>密码:</label>
            <input type="password" class="form-control" placeholder="请输入您的密码!" />
        </div>
        <div class="checkbox">
           <label><input type="checkbox" />记住密码</label>
        </div>
        <input type="button" class="btn btn-default" value="登录" />
     </fieldset>
   </form>
  
</body>
</html>

效果图:

bubuko.com,布布扣

 

*****************************************************垂直表单***********************************************************************************

<html lang="en">
<head>
    <title>form</title>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <script src="../file/jquery.js" type="text/javascript"></script>
    <link href="../book/css/bootstrap.css" rel="stylesheet" type="text/css" />
</head>
<body>
     <form class="form-horizontal">
        <div class="form-group">
            <label class="col-sm-2 control-label">用户名:</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" placeholder="请输入您的用户名!" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">密码:</label>
            <div class="col-sm-10">
                <input type="password" class="form-control" placeholder="请输入您的密码!" />
            </div>
        </div>
        <div class="form-group">
           <div class="col-sm-offset-2 col-sm-10">
              <div class="checkbox">
                 <label><input type="checkbox" />记住密码</label>
              </div>
           </div>
        </div>
        <div class="form-group">
           <div class="col-sm-offset-2 col-sm-10">
              <input type="button" class="btn btn-default" value="登录" />
           </div>
        </div>
   </form>
</body>
</html>

效果图:

bubuko.com,布布扣

 

 

 

开发bootstrap的from表单事例

标签:开发bootstrap的from表单事例   bootstrap   bootstrap开发   bootstrap的form表单开发   

原文地址:http://blog.csdn.net/y_f123/article/details/41862129

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!