使用 Bootstrap 设置列表组中列表项中的重要信息
在 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>
广告