Bootstrap 4 按钮 .btn-outline-light 类
bootstrapweb developmentcss framework更新于 2024/1/17 11:56:17
使用 Bootsrap 4 中的 btn-outline-light 类设置浅灰色轮廓按钮。
要将其添加到网页中,请将其设置为
<button type="button" class="btn btn-outline-light">
让我们看一个实现 btn-outline-light 类的示例 −
示例
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script> </head> <body> <h2>Demo Button</h2> <p>Below is a light grayed outline button:</p> <button type="button" class="btn btn-outline-light"> Sample </button> </body> </html>

