菜鸟学堂
在线运行
源代码
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Bootstrap 按钮 JavaScript 插件实例</title> <link href="/try/bootstrap/twitter-bootstrap-v2/docs/assets/css/bootstrap.css" rel="stylesheet" type="text/css" /> </head> <body> <div class="container"> <div class="row"> <div class="span8"> <h2>Bootstrap 按钮 JavaScript 插件实例</h2> <h3>控制状态</h3> <p><button id="fat-btn" data-loading-text="loading..." class="btn btn-primary">Loading State</button></p> <h3>单项切换</h3> <p><button class="btn btn-primary" data-toggle="button">Single Toggle</button></p> <h3>确认框</h3> <p> <div class="btn-group" data-toggle="buttons-checkbox"> <button class="btn btn-primary">Left</button> <button class="btn btn-primary">Middle</button> <button class="btn btn-primary">Right</button> </div> </p> <h3>单选框</h3> <p> <div class="btn-group" data-toggle="buttons-radio"> <button class="btn btn-primary">Left</button> <button class="btn btn-primary">Middle</button> <button class="btn btn-primary">Right</button> </div> </p> </div> </div> </div> <!--Except 'Control state', other buttons require only jquery.js and bootstrap-button.js JavaScript files--> <script type="text/javascript" src="/try/bootstrap/twitter-bootstrap-v2/docs/assets/js/jquery.js"></script> <script src="/try/bootstrap/twitter-bootstrap-v2/docs/assets/js/assets/js/bootstrap-transition.js"></script> <script src="/try/bootstrap/twitter-bootstrap-v2/docs/assets/js/bootstrap-alert.js"></script> <script src="/try/bootstrap/twitter-bootstrap-v2/docs/assets/js/bootstrap-modal.js"></script> <script src="/try/bootstrap/twitter-bootstrap-v2/docs/assets/js/bootstrap-dropdown.js"></script> <script src="/try/bootstrap/twitter-bootstrap-v2/docs/assets/js/bootstrap-scrollspy.js"></script> <script src="/try/bootstrap/twitter-bootstrap-v2/docs/assets/js/bootstrap-tab.js"></script> <script src="/try/bootstrap/twitter-bootstrap-v2/docs/assets/js/bootstrap-tooltip.js"></script> <script src="/try/bootstrap/twitter-bootstrap-v2/docs/assets/js/bootstrap-popover.js"></script> <script src="/try/bootstrap/twitter-bootstrap-v2/docs/assets/js/bootstrap-button.js"></script> <script src="/try/bootstrap/twitter-bootstrap-v2/docs/assets/js/bootstrap-carousel.js"></script> <script src="/try/bootstrap/twitter-bootstrap-v2/docs/assets/js/bootstrap-typeahead.js"></script> <script src="/try/bootstrap/twitter-bootstrap-v2/docs/assets/js/application.js"></script> </body> </html>
运行结果
在线运行
菜鸟学堂 edu.jb51.net