Home  >  Article  >  Web Front-end  >  Introducing a feature of Bootstrap input box group

Introducing a feature of Bootstrap input box group

零下一度
零下一度Original
2017-07-17 14:38:071851browse

This chapter will explain another feature supported by Bootstrap, input box group. The input box group extends from the form control. Using input box groups, you can easily add text or buttons as prefixes and suffixes to text-based input boxes.

You can add common elements to user input by adding prefix and suffix content to the input field. For example, you could add a dollar sign, or @ before your Twitter username, or other common elements required by the application interface.

The steps to add prefix or suffix elements to .form-control are as follows:

Place the prefix or suffix elements in a

with class .input-group.

Next, within the same

, place additional content within the of class .input-group-addon.

Place the before or after the element.

To maintain cross-browser compatibility, avoid using , the form control can be extended. This article will introduce in detail the Bootstrap input box group

Basic usage

Add additional elements or buttons on either side of the input box. You can also add additional elements on both sides of the input box at the same time

  @   
     @example.com
  $      .00
     


【Notes】

 1. Avoid using