Bootstrap btn-toolbar类
使用btn-toolbar类在Bootstrap中设置ButtonToolbar。
您可以尝试运行以下代码以实现btn-toolbar类-
示例
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <script src="/scripts/jquery.min.js"></script> <script src="/bootstrap/js/bootstrap.min.js"></script> </head> <body> <div class = "btn-toolbar" role = "toolbar"> <div class = "btn-group"> <button type = "button" class = "btn btn-default">MCA</button> <button type = "button" class = "btn btn-default">BCA</button> </div> <div class = "btn-group"> <button type = "button" class = "btn btn-default">MBA</button> <button type = "button" class = "btn btn-default">MS</button> </div> </div> </body> </html>