BOOTSTRAP2 and the BOOTSTRAP3 Overview of usage differences (ii)
One, drop-down menu
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. 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 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. 3 Add the. btn-group-* (* to lg/sm/xs/Default) button size for the button group.
2. multidimensional button groups/buttons toolbars, 2 and 3, combine multiple <div class= "Btn-group" > Into a <divclass= "Btn-toolbar" >.
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. 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. 2 and 3 Basic not too many differences, can be compared to the official website.
Iv. Input Frame Group
1. 2 The official website is introduced in the basic CSS style sheet consignments, 3 is specifically introduced in the component.
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)