设置带有页脚的 Bootstrap 面板


使用 .panel-footer 类向面板中添加页脚。

您可以尝试运行以下代码,将页脚设置到面板中 −

示例

实时演示

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

更新时间: 2020 年 6 月 12 日

已阅读 189 次

开启您的 职业生涯

通过完成课程获得认证

开始学习
广告
© . All rights reserved.