引导程序列表组类
列表组类的目的是在列表中呈现复杂的自定义内容。
您可以尝试运行以下代码以在Bootstrap中实现list-group类:
示例
<!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> <h2>Tutorials</h2> <p>The following are the tutorials:</p> <ul class = "list-group"> <li class = "list-group-item">HTML5</li> <li class = "list-group-item">JavaScript</li> <li class = "list-group-item">jQuery</li> </ul> </body> </html>