使用Bootstrap为列表组中的列表项设置警告措施
要为列表组中的列表项设置警告措施,请使用.list-group-item-warning类
示例
<!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>Demo</h1> <ul class = "list-group"> <li class = "list-group-item"> <p class = "list-group-item-text">A</p> </li> <li class = "list-group-item"> <p class = "list-group-item-text">B</p> </li> <li class = "list-group-item"> <p class = "list-group-item-text list-group-item-warning">C</p> </li> <li class = "list-group-item"> <p class = "list-group-item-text">D</p> </li> </ul> </div> </body> </html>