fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Bootstrap 按钮 JavaScript 插件实例</title> <link href="/jscss/bootstrap/v3/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="/jscss/bootstrap/v3/jquery.js"></script> <script src="/jscss/bootstrap/v3/assets/js/bootstrap-transition.js"></script> <script src="/jscss/bootstrap/v3/bootstrap-alert.js"></script> <script src="/jscss/bootstrap/v3/bootstrap-modal.js"></script> <script src="/jscss/bootstrap/v3/bootstrap-dropdown.js"></script> <script src="/jscss/bootstrap/v3/bootstrap-scrollspy.js"></script> <script src="/jscss/bootstrap/v3/bootstrap-tab.js"></script> <script src="/jscss/bootstrap/v3/bootstrap-tooltip.js"></script> <script src="/jscss/bootstrap/v3/bootstrap-popover.js"></script> <script src="/jscss/bootstrap/v3/bootstrap-button.js"></script> <script src="/jscss/bootstrap/v3/bootstrap-carousel.js"></script> <script src="/jscss/bootstrap/v3/bootstrap-typeahead.js"></script> <script src="/jscss/bootstrap/v3/application.js"></script> </body> </html>
运行结果