html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>组件title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<script type="application/javascript" src="js/jquery-3.2.0.js">script>
<script type="application/javascript" src="js/bootstrap.min.js">script>
<style type="text/css">
.dropup {
margin-top: 10px;
}
.dropdown{
margin-top: 10px;
}
.btn-group-demo{
margin-top:10px;
}
style>
head>
<body style="margin: 40px">
<div class="panel panel-success">
<div class="panel-heading">
普通按钮组
div>
<div class="panel-body">
<div class="btn-group" role="group" aria-label="btn-group">
<button type="button" class="btn btn-success">leftbutton>
<button type="button" class="btn btn-success">middlebutton>
<button type="button" class="btn btn-success">rightbutton>
div>
div>
div>
<div class="panel panel-warning">
<div class="panel-heading">
按钮工具栏
div>
<div class="panel-body">
<div class="btn-toolbar">
<div class="btn-group" role="group" aria-label="btn-group">
<button type="button" class="btn btn-warning">tool1button>
<button type="button" class="btn btn-warning">tool2button>
<button type="button" class="btn btn-warning">tool3button>
div>
<div class="btn-group" role="group" aria-label="btn-group">
<button type="button" class="btn btn-warning">tool4button>
<button type="button" class="btn btn-warning">tool5button>
<button type="button" class="btn btn-warning">tool6button>
div>
div>
div>
div>
<div class="panel panel-primary">
<div class="panel-heading">
按钮组大小
div>
<div class="panel-body">
<div class="btn-group btn-group-lg" role="group" aria-label="btn-group">
<button type="button" class="btn btn-primary">leftbutton>
<button type="button" class="btn btn-primary">middlebutton>
<button type="button" class="btn btn-primary">rightbutton>
div>
<hr/>
<div class="btn-group" role="group" aria-label="btn-group">
<button type="button" class="btn btn-success">leftbutton>
<button type="button" class="btn btn-success">middlebutton>
<button type="button" class="btn btn-success">rightbutton>
div>
<hr/>
<div class="btn-group btn-group-sm" role="group" aria-label="btn-group">
<button type="button" class="btn btn-warning">leftbutton>
<button type="button" class="btn btn-warning">middlebutton>
<button type="button" class="btn btn-warning">rightbutton>
div>
<hr/>
<div class="btn-group btn-group-xs" role="group" aria-label="btn-group">
<button type="button" class="btn btn-danger">leftbutton>
<button type="button" class="btn btn-danger">middlebutton>
<button type="button" class="btn btn-danger">rightbutton>
div>
div>
div>
<div class="panel panel-danger">
<div class="panel-heading">
嵌套按钮组
div>
<div class="panel-body">
<div class="btn-group" role="group" aria-label="btn-group">
<button type="button" class="btn btn-success">leftbutton>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
middle
<span class="caret">span>
button>
<ul class="dropdown-menu">
<li><a href="#">Dropdown linka>li>
<li><a href="#">Dropdown linka>li>
ul>
div>
<button type="button" class="btn btn-success">rightbutton>
div>
div>
div>
<div class="panel panel-info">
<div class="panel-heading">
垂直排列按钮组
div>
<div class="panel-body">
<div class="btn-group btn-group-vertical" role="group" aria-label="btn-group">
<button type="button" class="btn btn-info">leftbutton>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
middle
<span class="caret">span>
button>
<ul class="dropdown-menu">
<li><a href="#">Dropdown linka>li>
<li><a href="#">Dropdown linka>li>
ul>
div>
<button type="button" class="btn btn-info">rightbutton>
div>
div>
div>
<div class="panel panel-primary">
<div class="panel-heading">
两端对齐排列按钮组
div>
<div class="panel-body">
<div class="btn-group btn-group-justified" role="group" aria-label="btn-group">
<div class="btn-group" role="group">
<button type="button" class="btn btn-default">Leftbutton>
div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default">middlebutton>
div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default">rightbutton>
div>
div>
div>
div>
body>
html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>组件title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<script type="application/javascript" src="js/jquery-3.2.0.js">script>
<script type="application/javascript" src="js/bootstrap.min.js">script>
<style type="text/css">
.dropup {
margin-top: 10px;
}
.dropdown{
margin-top: 10px;
}
.btn-group-demo{
margin-top:10px;
}
style>
head>
<body style="margin: 40px">
<div class="panel panel-danger">
<div class="panel-heading">
常规输入框组
div>
<div class="panel-body">
<div class="input-group">
<span class="input-group-addon">@span>
<input type="text" class="form-control" placeholder="用户名">
div>
<hr/>
<div class="input-group">
<input type="text" class="form-control" placeholder="qqnumber">
<span class="input-group-addon">@qq.comspan>
div>
<hr/>
<div class="input-group">
<span class="input-group-addon">¥span>
<input type="text" class="form-control" placeholder="100">
<span class="input-group-addon">.00span>
div>
div>
div>
<div class="panel panel-info">
<div class="panel-heading">
输入框组大小
div>
<div class="panel-body">
<div class="input-group input-group-lg">
<span class="input-group-addon">@span>
<input type="text" class="form-control" placeholder="用户名">
div>
<hr/>
<div class="input-group">
<input type="text" class="form-control" placeholder="qqnumber">
<span class="input-group-addon">@qq.comspan>
div>
<hr/>
<div class="input-group input-group-sm">
<span class="input-group-addon">¥span>
<input type="text" class="form-control" placeholder="100">
<span class="input-group-addon">.00span>
div>
div>
div>
<div class="panel panel-danger">
<div class="panel-heading">
单选/多选按钮输入框组合
div>
<div class="panel-body">
<div class="row">
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon">
<input type="checkbox">
span>
<input type="text" class="form-control" placeholder="多选按钮输入框组">
div>
div>
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon">
<input type="radio">
span>
<input type="text" class="form-control" placeholder="单选按钮输入框组">
div>
div>
div>
div>
div>
<div class="panel panel-primary">
<div class="panel-heading">
按钮下拉菜单输入框组合
div>
<div class="panel-body">
<div class="input-group">
<div class="input-group-btn">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
菜单<span class="caret">span>
button>
<ul class="dropdown-menu">
<li><a href="#">Actiona>li>
<li><a href="#">Another actiona>li>
<li><a href="#">Something else herea>li>
<li role="separator" class="divider">li>
<li><a href="#">Separated linka>li>
ul>
div>
<input type="text" class="form-control" placeholder="输入点什么">
div>
div>
div>
<div class="panel panel-warning">
<div class="panel-heading">
分列式按钮下拉菜单输入框组合
div>
<div class="panel-body">
<div class="input-group">
<div class="input-group-btn">
<button type="button" class="btn btn-default">分裂按钮菜单button>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="caret">span>
<span class="sr-only">Toggle Dropdownspan>
button>
<ul class="dropdown-menu">
<li><a href="#">Actiona>li>
<li><a href="#">Another actiona>li>
<li><a href="#">Something else herea>li>
<li role="separator" class="divider">li>
<li><a href="#">Separated linka>li>
ul>
div>
<input type="text" class="form-control" placeholder="输入点什么">
div>
div>
div>
<div class="panel panel-info">
<div class="panel-heading">
按钮组输入框组
div>
<div class="panel-body">
<div class="input-group">
<div class="input-group-btn">
<button type="button" class="btn btn-default" aria-label="Bold">
<span class="glyphicon glyphicon-bold">span>
button>
<button type="button" class="btn btn-default" aria-label="Italic">
<span class="glyphicon glyphicon-italic">span>
button>
div>
<input type="text" class="form-control" placeholder="...">
div>
<hr/>
div>
div>
body>
html>