Runoops Demo
Bootstrap 实例 - 按钮
实例首页
自学教程
效率工具箱
源代码
外部库
0
重置
下载
上下布局
运行
<!doctype html> <html lang="en"> <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> <!-- Bootstrap --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> </head> <body> <div class="container"> <h2>按钮</h2> <p> .active 类表示按钮被点击:</p> <button type="button" class="btn btn-default">默认按钮</button> <button type="button" class="btn btn-default active">点击激活的默认按钮</button> <br><br> <button type="button" class="btn btn-info">信息按钮</button> <button type="button" class="btn btn-info active">点击激活的信息按钮</button> </div> <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> </body> </html>
运行结果
刷新
放大
全屏
外部库
搜索并选择 CDN 库,将自动写入源代码(可再手动调整)
关闭
staticfileCDN
cloudflareCDN
添加