Bootstrap panel-title 類


在 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>

更新於:12-6 月-2020

475 次檢視

開啟你的 職業生涯

完成課程獲得認證

開始學習
廣告