The use of a single button in a Web page sometimes does not meet our business needs, often see the combination of multiple buttons together, such as a rich text editor in a group of small icon buttons, etc.
Button groups and drop-down menu components need to rely on the Button.js plug-in for proper operation. But we can also just call the Bootstrap.js file directly. Because this file is integrated with the Button.js plugin feature. For the structural aspect, it is very simple. Use a container called "btn-group" to place multiple buttons in this container.
In addition to the use of <button> elements, other label elements, such as <a> tags, can be used. The only guarantee is that no matter what label is used, the label element in the ". Btn-group" container needs to have the class name ". Btn"
Attention:
1, the default all buttons have rounded corners
2. Except for the first button and the last button (except for the drop-down button), the other buttons all cancel the fillet effect.
3. The first button only leaves the upper left corner and the lower left corner are rounded corners
4, the last button only left the upper right corner and the lower right corner is a rounded corner
<Divclass= "Btn-group"> <Buttontype= "button"class= "Btn Btn-default"><spanclass= "Glyphicon glyphicon-step-backward"></span></Button> <Buttontype= "button"class= "Btn Btn-default"><spanclass= "Glyphicon glyphicon-fast-backward"></span></Button> <Buttontype= "button"class= "Btn Btn-default"><spanclass= "Glyphicon glyphicon-backward"></span></Button> <Buttontype= "button"class= "Btn Btn-default"><spanclass= "Glyphicon glyphicon-play"></span></Button> <Buttontype= "button"class= "Btn Btn-default"><spanclass= "Glyphicon glyphicon-pause"></span></Button> <Buttontype= "button"class= "Btn Btn-default"><spanclass= "Glyphicon glyphicon-stop"></span></Button> <Buttontype= "button"class= "Btn Btn-default"><spanclass= "Glyphicon glyphicon-forward"></span></Button> <Buttontype= "button"class= "Btn Btn-default"><spanclass= "Glyphicon glyphicon-fast-forward"></span></Button> <Buttontype= "button"class= "Btn Btn-default"><spanclass= "Glyphicon glyphicon-step-forward"></span></Button></Div>
Bootstrap Series--29. Button Group