Chapter 4 BootStrap forms and image_javascript tips-js tutorial

Source: Internet
Author: User
Bootstrap, from Twitter, is currently the most popular front-end framework. This article introduces Bootstrap forms and images. For more information, see Bootstrap. Twitter is the most popular front-end framework. Bootstrap is based on HTML, CSS, and JAVASCRIPT. It is concise and flexible, making Web development faster.

Learning points:

1. Form
2. Images

In this lesson, we will mainly learn about the Bootstrap form and image functions, and display various effects through built-in CSS definitions.

I. Forms

Bootstrap provides a variety of form styles for developers.

1. Basic Format

// Implement basic form styles

Note: Only when the type of the input box is set correctly can the correct style be assigned. Supported input box controls include text, password, datetime, datetime-local, date, month, time, week, number, email, url, search, tel, and color.

2. inline form

// Let the form align left and float, and show it as inline-block inline block Structure

Note: The col-sm raster system is used here, which will be explained in later sections. The control-label system is used to synchronize with the parent element style.

5. Check box and single answer

// Set the check box in one row

Sports

Music

// Set the disabled check box

Music

// Set the check box for inline row display Sports Music// Set a single region

Male

6. drop-down list

// Set the drop-down list12345 

7. Check status

// Set to error status

Note: Other statuses are as follows:

Style description has-error status has-success status has-warning status // The label synchronizes the corresponding statusInput with success 

8. Add additional icons

// The built-in text icon on the right of the text box

Email

Note: In addition to glyphicon-OK, there are several tables as follows:

Style description glyphicon-OK success status glyphicon-warning-sign warning status glyphicon-remove error status

9. Size Control

// From large to small 

Note: You can also set the parent elements form-group-lg and form-group-sm to adjust them.

Ii. Images

Bootstrap provides a variety of image styles for developers.

1. Image shape

// Three shapes // response-Type Image

The above is the Bootstrap form and image content that I will introduce to you. I hope it will help you!

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.