Case of Bootstrap form control

Source: Internet
Author: User

<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 "/>
<body>
<form class= "Form-horizontal" >
<div class= "Form-group" >
<label class= "Col-sm-2 control-label" > User name:</label>
<div class= "Col-sm-10" >
<input type= "text" class= "Form-control" placeholder= "Please enter your username!"/>
</div>
</div>
<div class= "Form-group" >
<label class= "col-sm-2 control-label" > Password:</label>
<div class= "Col-sm-10" >
<input type= "Password" class= "Form-control" placeholder= "Please enter your password!"/>
</div>
</div>
<div class= "Form-group" >
<label class= "Col-sm-2 control-label" > Professional:</label>
<div class= "Col-sm-10" >
<label class= "Checkbox-inline" >
<input type= "checkbox" Value= "Sport" name= "Zhuangye"/> Sports
</label>
<label class= "Checkbox-inline" >
<input type= "checkbox" value= "Music" name= "Zhuangye"/> Music
</label>
<label class= "Checkbox-inline" >
<input type= "checkbox" value= "math" name= "Zhuangye"/> Math
</label>
<label class= "Checkbox-inline" >
<input type= "checkbox" value= "Computer" name= "Zhuangye"/> Computer
</label>
</div>
</div>
<div class= "Form-group" >
<label class= "Col-sm-2 control-label" > Sport:</label>
<div class= "Col-sm-10" >
<select multiple= "multiple" >
<option> Basketball </option>
<option> Football </option>
<option> Running </option>
<option> High Jump </option>
<option> Long Jump </option>
</select>
</div>
</div>
<div class= "Form-group" >
<label class= "col-sm-2 control-label" > Sex:</label>
<div class= "Col-sm-10" >
<input type= "Radio" name= "Sex" checked= "checked" value= "male"/> Male &nbsp;
<input type= "Radio" name= "Sex" checked= "checked" value= "female"/> Female
</div>
</div>
<div class= "Form-group" >
<div class= "Col-sm-offset-2 col-sm-10" >
<div class= "checkbox" >
<label><input type= "checkbox"/> Do you like listening to music </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= "register"/>
</div>
</div>
</form>
</body>


The case of the form form control for bootstrap

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.