将 HTML 段落添加到 Bootstrap 缩略图中


使用 Bootstrap,你可以轻松地向缩略图中添加段落。

你可以尝试运行以下代码以添加 HTML 段落 −

示例

活动演示

<!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 = "row">
         <div class = "col-sm-6 col-md-3">
            <div class = "thumbnail">
               <img src = "https://tutorialspoint.com/sap_payroll/images/sap-payroll-mini-logo.jpg" alt = "SAP">
            </div>
            <div class = "caption">
               <h3>Thumbnail label</h3>
               <p>This is demo paragraph! This is demo paragraph! This is demo paragraph! This is demo paragraph! This is demo paragraph! This is demo paragraph!</p>
               <p>This is demo paragraph! This is demo paragraph! This is demo paragraph! This is demo paragraph! This is demo paragraph!</p>
            </div>
         </div>
      </div>
   </body>
</html>

更新于: 12-Jun-2020

116 次浏览

开启你的 职业 生涯

通过完成本课程获得认证

开始
广告