Bootstrap study notes (3)--Forms and forms

Source: Internet
Author: User

Bootstrap Form Table class:. table will only add horizontal lines between table rows;   . table-striped will increase or decrease the zebra crossing between the table rows;   The. Table-hover will set the mouse hover state for the table;   The. Table-border will add a border for all tables; . table-condensed make tables more compact;   Tr,td,th class. Active lets a row of cells or rows be active;   . Success represents a successful style;   . Warning indicates the style of the warning;   . Danger represents a dangerous style; . info represents the style of the information;

Form class:

 basic steps for creating a form(1) First add role= "form" to the form element; (2) Put the label and the control in a <div> with class. Form-group, which is necessary to obtain the best spacing lock; (3) Add class to all text elements <intput><textarea> and <select>. Form-control; several form formats;  Vertical Form-a normal form created with the above style;Horizontal form-adds class to the form. form-horizontal; Inline form-adds class. Form-inline to the form, for tag elements you can use the. Sr-only to hide the label Element (label) supported form controls:Input,textarea,checkbox,radio,select (can increase multiple to achieve multi-select) Here is a special note to implement inline check boxes or radio buttons using the Checkbox-line property. If you want to place plain text, then you can use the <p> element. form-control-static Form control state: You can set has-warning,has-error,has-success on the div to display the state of the internal controls.  You can set the. input-large or. input-sm to display the size of the control, or use col-lg-* to display the number of columns the control occupies. You can use. Class-bloc to display an explanation of a piece of content.

Bootstrap study notes (3)--Forms and forms

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.