标签:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>bootstrap按钮组</title> <link href="dist/css/bootstrap.min.css" rel="stylesheet"> <script src="js/jquery-1.11.2.min.js"></script> <script src="dist/js/bootstrap.min.js"></script> </head> <body> <div class="btn-group"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> 教程网<span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">Java教程网</a></li> <li><a href="#">Android教程网</a></li> <li><a href="#">ios教程网</a></li> <li class="divider"></li> <li><a href="#">622p开源网</a></li> </ul> </div> <div class="btn-group"> <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown"> 教程网<span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">java教程网</a></li> <li><a href="#">android教程网</a></li> <li><a href="#">ios教程网</a></li> <li class="divider"></li> <li><a href="#">622p开源网</a></li> </ul> </div> <button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown"> 教程网<span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">java教程网</a></li> <li><a href="#">android教程网</a></li> <li><a href="#">ios教程网</a></li> <li class="divider"></li> <li><a href="#">622p开源网</a></li> </ul> </div> <button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown"> 教程网<span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">java教程网</a></li> <li><a href="#">android教程网</a></li> <li><a href="#">ios教程网</a></li> <li class="divider"></li> <li><a href="#">622p开源网</a></li> </ul> </div> <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown"> 教程网<span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">java教程网</a></li> <li><a href="#">android教程网</a></li> <li><a href="#">ios教程网</a></li> <li class="divider"></li> <li><a href="#">622p开源网</a></li> </ul> </div> <button type="button" class="btn btn-warning dropdown-toggle" data-toggle="dropdown"> 教程网<span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">java教程网</a></li> <li><a href="#">android教程网</a></li> <li><a href="#">ios教程网</a></li> <li class="divider"></li> <li><a href="#">622p开源网</a></li> </ul> </div> </body> </html>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>bootstrap按钮组</title> <link href="dist/css/bootstrap.min.css" rel="stylesheet"> <script src="js/jquery-1.11.2.min.js"></script> <script src="dist/js/bootstrap.min.js"></script> </head> <body> <div class="btn-group"> <button type="button" class="btn btn-danger">教程网</button> <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> <span class="caret"></span> <span class="sr-only">Toggle Dropdown</span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">java教程网</a></li> <li><a href="#">android教程网</a></li> <li><a href="#">iod教程网</a></li> <li class="divider"></li> <li><a href="#">开源网</a></li> </ul> </div> </body> </html>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>bootstrap按钮组</title> <link href="dist/css/bootstrap.min.css" rel="stylesheet"> <script src="js/jquery-1.11.2.min.js"></script> <script src="dist/js/bootstrap.min.js"></script> </head> <body> <div class="btn-group"> <button class="btn btn-warning btn-lg dropdown-toggle" type="button" data-toggle="dropdown" aria-expanded="false"> Large button <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">java教程网</a></li> <li><a href="#">android教程网</a></li> <li><a href="#">iod教程网</a></li> <li class="divider"></li> <li><a href="#">开源网</a></li> </ul> </div> <!-- Small button group --> <div class="btn-group"> <button class="btn btn-danger btn-sm dropdown-toggle" type="button" data-toggle="dropdown" aria-expanded="false"> Small button <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">java教程网</a></li> <li><a href="#">android教程网</a></li> <li><a href="#">iod教程网</a></li> <li class="divider"></li> <li><a href="#">开源网</a></li> </ul> </div> <!-- Extra small button group --> <div class="btn-group"> <button class="btn btn-info btn-xs dropdown-toggle" type="button" data-toggle="dropdown" aria-expanded="false"> Extra small button <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">java教程网</a></li> <li><a href="#">android教程网</a></li> <li><a href="#">iod教程网</a></li> <li class="divider"></li> <li><a href="#">开源网</a></li> </ul> </div> </body> </html>效果图
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>bootstrap按钮组</title> <link href="dist/css/bootstrap.min.css" rel="stylesheet"> <script src="js/jquery-1.11.2.min.js"></script> <script src="dist/js/bootstrap.min.js"></script> </head> <body> <br><br><br><br> <br><br><br><br> <br><br><br><br> <br><br><br><br> <div class="btn-group dropup"> <button type="button" class="btn btn-info">Dropup</button> <button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> <span class="caret"></span> <span class="sr-only">Toggle Dropdown</span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">java教程网</a></li> <li><a href="#">android教程网</a></li> <li><a href="#">iod教程网</a></li> <li class="divider"></li> <li><a href="#">开源网</a></li>-> </ul> </div> </body> </html>效果图
标签:
原文地址:http://blog.csdn.net/wenzhilanyu2012/article/details/43602133