使用 Bootstrap 在媒体对象中创建标题


要在媒体对象中创建标题,请使用 .media-heading 

示例

实际演示

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Example</title>
      <link rel = "stylesheet" href = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
      <script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
      <script src = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
   </head>
   <body>
      <div class = "container">
         <h2>Google Tag Manager Tutorial</h2>
            <div class = "media">
               <div class="media-left">
                  <img src = "https://tutorialspoint.com/latest/Google-Tag-Manager.png" class="media-object" style="width:60px">
               </div>
               <div class = "media-body">
               <h4 class = "media-heading">Definition</h4>
               <p>Google Tag Manager (GTM) is a free tool that makes it easy for marketers to add and update website tags.</p>
            </div>
         </div>
      </div>
   </body>
</html>

更新于:2020-06-12

77 次浏览

开启你的职业生涯

完成课程,获得认证

开始
广告