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>

更新於: 12-Jun-2020

475 次瀏覽

開啟你的職業生涯

完成課程以獲得認證

開始
廣告