Bootstrap面板标题类

在Bootstrap中添加面板标题,以使用.panel-title类向面板添加标题。

您可以尝试运行以下代码来实现.panel-title类

示例

<!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">
            <h3 class = "panel-title">
               Panel with title
            </h3>
         </div>
         <div class = "panel-body">
            Panel content
         </div>
      </div>
   </body>
</html>