An overview of the usage differences between BOOTSTRAP2 and BOOTSTRAP3 (ii)

Source: Internet
Author: User

BOOTSTRAP2 and the BOOTSTRAP3 Overview of usage differences (ii)

One, drop-down menu

  1. 1. 3 by setting the. Dropup class for the drop-down menu parent element, let the menu pop up, without setting the class to pop down by default.

  2. 2. Drop- down menu alignment, right justification for example, 2 in. Pull-right class, 3 in. Dropdown-menu-right class. But the 3 trigger button is still used if you need to right-align. Pull-right class, note the addition of the outer Div.

  3. 3. 3 you can add a caption to the drop-down menu <li> title (plus class. Dropdown-header ) to differentiate groups. 2 is through the submenu.

Second, Button group

  1. 1. 3 Add the. btn-group-* (* to lg/sm/xs/Default) button size for the button group.

  2. 2. multidimensional button groups/buttons toolbars, 2 and 3, combine multiple <div class= "Btn-group" > Into a <divclass= "Btn-toolbar" >.

  3. 3. Nested (Use the drop-down button in the single-dimension button group), put the. Btn-group with a drop-down box into the parent. Btn-group.

  4. 4. 3 A group of aligned buttons is added, that is, a group of buttons fills the width of the page, plus the. Btn-group-justified class.


Three, push-button drop-down menu

    1. 1. 2 and 3 Basic not too many differences, can be compared to the official website.


Iv. Input Frame Group

    1. 1. 2 The official website is introduced in the basic CSS style sheet consignments, 3 is specifically introduced in the component.

    2. 2. about Size: 2 The width of a single input box is changed according to the class, and the size of each set of input boxes (including the extra elements before and after the input box) can be changed in 3 according to the class.


This article from the "8061125" blog, reproduced please contact the author!

An overview of the usage differences between BOOTSTRAP2 and BOOTSTRAP3 (ii)

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.