bootstrap的form表單控制項的案例,bootstrapform表單

來源:互聯網
上載者:User

bootstrap的form表單控制項的案例,bootstrapform表單

<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">
            <label class="col-sm-2 control-label">專業:</label>
            <div class="col-sm-10">
                <label class="checkbox-inline">
                   <input type="checkbox" value="體育" name="zhuangye" />體育
                </label>
                <label class="checkbox-inline">
                   <input type="checkbox" value="音樂" name="zhuangye" />音樂
                </label>
                <label class="checkbox-inline">
                   <input type="checkbox" value="數學" name="zhuangye" />數學
                </label>
                <label class="checkbox-inline">
                   <input type="checkbox" value="電腦" name="zhuangye" />電腦
                </label>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">愛好的運動:</label>
            <div class="col-sm-10">
                <select multiple="multiple">
                   <option>籃球</option>
                   <option>足球</option>
                   <option>跑步</option>
                   <option>跳高</option>
                   <option>跳遠</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">性別:</label>
            <div class="col-sm-10">
                <input type="radio" name="sex" checked="checked" value="男"/>男&nbsp;
                <input type="radio" name="sex" checked="checked" value="女" />女
            </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>

 


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.