Bootstrap 的 panel-default 类


若要获得基本面板,只需将 class .panel 添加到 <div> 元素即可。然后,将 class .panel-default 添加到该元素,如下面的代码所示 −

示例

真实演示

<!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-body">
            This is a demo panel
         </div>
      </div>
   </body>
</html>

更新时间:2020 年 6 月 12 日

223 次浏览

开启您的 事业

完成课程以获得认证

开始
广告
© . All rights reserved.