Bootstrap 中嵌入內容的容器


使用 Bootstrap 中的 .embed-responsive 類為嵌入內容設定容器。

嘗試執行以下程式碼以在 Bootstrap 中實現 .embed-responsive 類

示例

線上演示

<!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 = "container">
         <h2>Add pages in WordPress</h2>
         <p>To add pages on a WordPress, try the below given steps in the video:</p>
         <div class = "embed-responsive embed-responsive-4by3">
            <iframe class = "embed-responsive-item" src = "https://www.youtube.com/embed/XBgr68rxNLM"></iframe>
         </div>
      </div>
   </body>
</html>

更新於:12-6-2020

254 次瀏覽

開啟你的 職業 生涯

完成課程,獲得認證

開始吧
廣告