使用绿色边框的 Bootstrap 4 按钮设置积极成功操作
若要给一个按钮设置描边,用以表示积极操作,你需要在 Bootstrap 中使用 btn-outline-success 类。
以下是如何设置它
<button type="button" class="btn btn-outline-success"> More (Green Outline) </button>
你可以尝试运行以下代码来实现 btn-outline-success 类 -
示例
<!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>Python</h2> <p>The following are the Python Technologies :</p> <ul class = "list-group"> <li class = "list-group-item">Jython</li> <li class = "list-group-item">WxPython</li> </ul> <p>For more, click below:</p> <button type="button" class="btn btn-outline-success">More (Green Outline)</button> </body> </html>
Advertisement