Bootstrap learning notes (3) -- table form image-tuohaibei

Source: Internet
Author: User
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)

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.