列表组 Bootstrap 面板
在任何面板中包括列表组。通过向 <div> 元素添加 class .panel 创建面板。此外,向此元素添加 class .panel-default。现在在这个面板中包括你的列表组。
你可以尝试运行以下代码来设置带有列表组的面板 −
示例
<!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 = "panel panel-default"> <div class = "panel-heading">Panel heading</div> <div class = "panel-body"> <p>The following is a list of topics in Java.</p> </div> <ul class = "list-group"> <li class = "list-group-item">Java Interfaces</li> <li class = "list-group-item">Java Packages</li> <li class = "list-group-item">File Handling in Java</li> </ul> </div> </body> </html>
广告