Bootstrap list-group 类
list-group 类的目的是在列表中呈现复杂且自定义的内容。
您可以尝试运行以下代码,在 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>
广告