Bootstrap list-group-item 类
使用 list-group-item 类可以为 list group 中的每个 <li> 元素添加一个项目。
你可以试着运行以下代码来实现 list-group-item 类
示例
<!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>Tools</h2> <p>The following are the tools:</p> <ul class = "list-group"> <li class = "list-group-item">Online Compiler</li> <li class = "list-group-item">Image Editor</li> <li class = "list-group-item">Image Optimizer</li> <li class = "list-group-item">Whiteboard</li> </ul> </body> </html>
广告