使用Bootstrap中的list-group-item-info类设置列表组中列表项的关键信息。
您可以尝试运行以下代码以实现list-group-item-info类-
<!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-info">Multi-threading</p> </li> <li class = "list-group-item"> <p class = "list-group-item-text">Packages</p> </li> </ul> </div> </body> </html>