Bootstrap-btn_group button Groups and nesting

Source: Internet
Author: User
Tags jquery library

<!DOCTYPE HTML><HTMLLang= "ZH-CN">  <Head>    <MetaCharSet= "Utf-8">    <Metahttp-equiv= "X-ua-compatible"content= "Ie=edge">    <Metaname= "Viewport"content= "Width=device-width, initial-scale=1">    <!--The above 3 meta tags * must be * first, and any other content * must be followed!  -    <title>Bootstrap 101 Template</title>    <!--1. Load bootstrap cascading style sheet -    <Linkhref= "Css/bootstrap.min.css"rel= "stylesheet">    <!--HTML5 Shim and Respond.js for IE8 support of HTML5 elements and media queries -    <!--WARNING:Respond.js doesn ' t work if you view the page via file:// -    <!--[If Lt IE 9]> <script src= "//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js" ></script> < Script src= "//cdn.bootcss.com/respond.js/1.4.2/respond.min.js" ></script> <! [EndIf] -  </Head>    <Body>        <!--Button Toolbar -    <Divclass= "Btn-toolbar"role= "Toolbar"Aria-label="...">            <!--Button Group, btn-group-* button size in the Adjust button group -        <Divclass= "Btn-group btn-group-sm"role= "group"Aria-label="...">          <Buttontype= "button"class= "Btn Btn-default">1</Button>          <Buttontype= "button"class= "Btn btn-info">2</Button>          <Buttontype= "button"class= "Btn btn-warning">3</Button>        </Div>                <!--Button Group -        <Divclass= "Btn-group btn-group-lg"role= "group"Aria-label="...">          <Buttontype= "button"class= "Btn Btn-default">4</Button>          <Buttontype= "button"class= "Btn btn-info">5</Button>          <Buttontype= "button"class= "Btn btn-warning">6</Button>        </Div>            </Div>            <!--Nesting -    <Divclass= "Btn-group"role= "group"Aria-label="...">        <Buttontype= "button"class= "Btn Btn-default">1</Button>        <Buttontype= "button"class= "Btn Btn-default">2</Button>                <!--Drop-down menu button group -        <Divclass= "Btn-group"role= "group">            <Buttontype= "button"class= "btn btn-default dropdown-toggle"Data-toggle= "Dropdown"Aria-haspopup= "true"aria-expanded= "false">Dropdown<spanclass= "Caret"></span>            </Button>            <ulclass= "Dropdown-menu">              <Li><ahref="#">Dropdown 1</a></Li>              <Li><ahref="#">Dropdown 2</a></Li>            </ul>        </Div>            </Div>                <!--2. Load the jquery library -    <Scriptsrc=".. /jq/jquery-1.12.4.min.js "></Script>    <!--3. Load Bootstrap core JS -    <Scriptsrc= "Js/bootstrap.min.js"></Script>  </Body></HTML>
View Code

Bootstrap-btn_group button Groups and nesting

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.