Bootstrap 类 panel-info 的用法


Bootstrap 中的 panel-info 类是一种上下文状态类,可以形成对特定上下文更具意义的面板。这会将信息添加到一个面板中,并呈现蓝色。

你可以尝试运行以下代码来实现 panel-info 类 -

示例

及时演示

<!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 style = "background: orange;">
      <div class = "panel panel-info">
         <div class = "panel-heading">
            <h3 class = "panel-title">Panel Title</h3>
         </div>
         <div class = "panel-body">
            This is a demo panel.
         </div>
      </div>
   </body>
</html>

更新时间:2020 年 6 月 12 日

177 次浏览

开启你的 职业生涯

完成课程,获得认证

开始
广告
© . All rights reserved.