Bootstrap CSS Component input frame Group _javascript tips

Source: Internet
Author: User
Tags button type

This example for you to share the bootstrap input frame group of specific code for your reference, the specific contents are as follows

Learn why the table width for Table-cell is set to 1%.

Http://www.tuicool.com/articles/VzUVfyi

By adding the contents of the prefix and suffix to the input field, you can add a common element to the user input. For example, you can add a dollar sign, or add a @ to the Twitter username, or other common elements required by the application interface.

Input-group (INPUT-GROUP-XS,INPUT-GROUP-SM,INPUT-GROUP-LG), Input-group-addon, Form-control

SOURCE
//elements set to equal height display, input-group input box group Display:table,input-group-addon and Form-control set Display:table-cell
. Input-group {
 position:relative;
 display:table;
 border-collapse:separate;
}
Input-group If the col style is applied at the same time, the float and left and right padding are canceled
. input-group[class*= "col-"] {
 float:none;
 padding-right:0;
 padding-left:0
}
. Input-group. Form-control {
 position:relative;
 Z-index:2;
 Float:left;
 width:100%;
 margin-bottom:0
}
. Input-group-addon,
. input-group-btn {
//Set the minimum value so that the table pattern is approximately divided into
 width:1%;
 White-space:nowrap;
 Vertical-align:middle
}
. Input-group-addon,
. input-group-btn,
. Input-group. form-control {
 Display:table-cell;
}


1. Basic usage
Sometimes you need to combine text input boxes (input-group) with text or small icon to display
2. check box and radio box as addon. Input-group-addon (can place Label,icon,checkbox,radio)
3. Button as Addon
4. Drop-down menu button as addon
5. Segmented button as addon

<! DOCTYPE html>  

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

Related Article

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.