Bootstrap learning notes (3) -- table form image-tuohaibei
Bootstrap table
Table class:
. Table only adds a horizontal line between table rows;
. Table-striped will increase or decrease the zebra line between table rows;
. Table-hover will set the mouse hover status for the table;
. Table-border adds borders for all tables;
. Table-condensed makes the table more compact;
Tr, td, th class
. Active: Make a row of cells or rows active;
. Success indicates a successful style;
. Warning indicates the warning style;
. Danger indicates a dangerous style;
. Info indicates the information style;
Form class:
Basic Steps for creating a form
(1) first add role = "form" to the form element ";
(2) Place tags and controls in a class. form-group
, Which is required to obtain the best spacing lock;
(3) to all text elements And Add class. form-control;Several Forms; Vertical form-a common form created using the above style;Horizontal form-add class. form-horizontal to form;Inline form-add class. form-inline to form. You can use. sr-only to hide the label element)Supported form controls:Input, textarea, checkbox, radio, select (multiple can be added for multiple selections)It is particularly noted that the checkbox-line attribute is used for implementing the inline check box or single-choice button.If you want to place plain text, you canUse. form-control-static Form control status:You can set has-warning, has-error, and has-success for p to display the status of internal controls.You can set. input-large or. input-sm to display the control size, or use col-lg-* to display the number of columns occupied by the control.You can use. class-bloc to display the explanation of a piece of content. Image:. Img-rounded: AddBorder-radius: 6pxTo obtain the rounded corner of the image.. Img-circle: AddBorder-radius: 50%To make the entire image circle.. Img-thumbnail: Add some padding and a gray border.. Img-responsive image response type (well extended to the parent element)