向 Bootstrap 面板添加标题容器
bootstrapweb developmentcss framework更新于 2026/2/14 5:32:17
要在 Bootstrap 中向面板添加标题容器,请使用 .panel-heading 类
示例
<!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> </body> </html>

