编辑下面的代码:【加编码】
<html> <head> <title>Active buttons from Bootstrap 3</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="/try/bootstrap/v3/dist/css/bootstrap.min.css" rel="stylesheet" media="screen"> <style> body { padding: 50px } </style> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script> <![endif]--> </head> <body> <button type="button" class="btn btn-default active">Default</button> <button type="button" class="btn btn-primary active">Primary</button> <button type="button" class="btn btn-success active">Success</button> <button type="button" class="btn btn-info active">Info</button> <button type="button" class="btn btn-warning active">Warning</button> <button type="button" class="btn btn-danger active">Danger</button> <button type="button" class="btn btn-link active">Link</button> <script src="https://code.jquery.com/jquery.js"></script> <script src="/try/bootstrap/v3/dist/js/bootstrap.min.js"></script> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂