面板标题
面板内容
面板页脚
<!DOCTYPE html> <html lang="en"> <head> <title>Panel</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"/> </head> <body> <div class="container"> <h1>Panel Example</h1> <div class="panel panel-primary"> <div class="panel-heading"> <h3 class="panel-title"><strong>Panel title</strong></h3> </div> <div class="panel-body"> Panel content </div> <div class="panel-footer"> <strong>Panel footer</strong> </div> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Case</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h2>Panel Group</h2> <p>The panel-group class clears the bottom-margin. try to remove the class and see what happens.</p> <div class="panel-group"> <div class="panel panel-default"> <div class="panel-heading">Panel Header</div> <div class="panel-body">Panel Content</div> </div> <div class="panel panel-default"> <div class="panel-heading">Panel Header</div> <div class="panel-body">Panel Content</div> </div> <div class="panel panel-default"> <div class="panel-heading">Panel Header</div> <div class="panel-body">Panel Content</div> </div> </div> </div> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Case</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h2>Panels with Contextual Classes</h2> <div class="panel-group"> <div class="panel panel-default"> <div class="panel-heading">Panel with panel-default class</div> <div class="panel-body">Panel Content</div> </div> <div class="panel panel-primary"> <div class="panel-heading">Panel with panel-primary class</div> <div class="panel-body">Panel Content</div> </div> <div class="panel panel-success"> <div class="panel-heading">Panel with panel-success class</div> <div class="panel-body">Panel Content</div> </div> <div class="panel panel-info"> <div class="panel-heading">Panel with panel-info class</div> <div class="panel-body">Panel Content</div> </div> <div class="panel panel-warning"> <div class="panel-heading">Panel with panel-warning class</div> <div class="panel-body">Panel Content</div> </div> <div class="panel panel-danger"> <div class="panel-heading">Panel with panel-danger class</div> <div class="panel-body">Panel Content</div> </div> </div> </div> </body> </html>