載入程式中的媒體物件


使用載入程式中的 .media-object 類來設定媒體物件 −

示例

即時演示

<!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>Lolcode Tutorial</h2>
         <div class = "media">
            <div class = "media-left">
               <img src = "https://tutorialspoint.tw/latest/lolcode.png" class="media-object" style="width:60px">
            </div>
            <div class = "media-body">
               <h4 class = "media-heading">Introduction</h4>
               <p>LOLCODE is an esoteric programming language inspired by the funny things on the Internet. It is designed to test the boundaries of programming language design.</p>
            </div>
         </div>
      </div>
   </body>
</html>

更新於:2020 年 6 月 15 日

127 個瀏覽次數

開啟你的 職業生涯

透過完成課程獲得認證

開始學習
廣告
© . All rights reserved.