使用Bootstrap中的list-group-item-success类为列表组中的列表项设置成功操作。
您可以尝试运行以下代码以实现list-group-item-success类-
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap.min.js"></script> </head> <body> <div class = "container"> <h1>Java</h1> <ul class = "list-group"> <li class = "list-group-item"> <p class = "list-group-item-text">Interfaces</p> </li> <li class="list-group-item"> <p class="list-group-item-text list-group-item-success">Multi-threading</p> </li> <li class = "list-group-item"> <p class = "list-group-item-text">Packages</p> </li> </ul> </div> </body> </html>