Bootstrap Series--29. Button Group

Source: Internet
Author: User

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

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.