使用Bootstrap为列表组中的列表项设置危险动作
使用。Bootstrap中的list-group-item-danger 类可为列表组中的列表项设置危险动作-
示例
<!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 One</h1> <ul class = "list-group"> <li class = "list-group-item"> <p class = "list-group-item-text list-group-item-danger">A</p> </li> <li class = "list-group-item"> <p class = "list-group-item-text">B</p> </li> </ul> </div> </body> </html>