国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

Bootstrap縮略圖的創建方法

2019-11-19 17:05:05
字體:
來源:轉載
供稿:網友

Bootstrap 創建縮略圖的步驟如下:

1、在圖像周圍添加帶有 class .thumbnail 的 <a> 標簽.
2、這會添加四個像素的內邊距(padding)和一個灰色的邊框。

有了一個基本的縮略圖,我們可以向縮略圖添加各種 HTML 內容,比如標題、段落或按鈕。具體步驟如下:
1、把帶有  class .thumbnail 的 <a> 標簽改為 <div>。
2、在該 <div> 內,您可以添加任何您想要添加的東西。由于這是一個 <div>,我們可以使用默認的基于 span 的命名規則來調整大小。

html代碼

<!DOCTYPE html> <html> <head>  <title>Bootstrap 頁面標題(Page Header)</title>  <meta charset="utf-8">  <link rel="stylesheet" href="css/bootstrap.min.css" rel="external nofollow" >  <style>   h2{   color: #080808;   font-weight:900;    text-shadow:1px 1px 0px #AD55C9;   }   p{   color: #6A031A;   size: 24px;   }  </style> </head>  <body> <div class="row">  <div class="col-sm-6 col-md-3">   <div class="thumbnail"><img src="img/2.jpg"></div>   <div class="caption">    <h2>漂亮的圖片</h2>    <p>漂亮的圖片.漂亮的圖片.</p>    <p><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="btn btn-primary" role="button">點你 </a>    <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="btn btn-default" role="button">就點你 </a>    </p>   </div>  </div>    <div class="col-sm-6 col-md-3">   <div class="thumbnail"><img src="img/2.jpg"></div>   <div class="caption">    <h2>漂亮的圖片</h2>    <p>漂亮的圖片.漂亮的圖片.</p>    <p><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="btn btn-primary" role="button">點你 </a>    <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="btn btn-default" role="button">就點你 </a>    </p>   </div>  </div>  <div class="col-sm-6 col-md-3">   <div class="thumbnail"><img src="img/2.jpg"></div>   <div class="caption">    <h2>漂亮的圖片</h2>    <p>漂亮的圖片.漂亮的圖片.</p>    <p><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="btn btn-primary" role="button">點你 </a>    <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="btn btn-default" role="button">就點你 </a>    </p>   </div>  </div>  <div class="col-sm-6 col-md-3">   <div class="thumbnail"><img src="img/2.jpg"></div>   <div class="caption">    <h2>漂亮的圖片</h2>    <p>漂亮的圖片.漂亮的圖片.</p>    <p><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="btn btn-primary" role="button">點你 </a>    <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="btn btn-default" role="button">就點你 </a>    </p>   </div>  </div>  <div class="col-sm-6 col-md-3">   <div class="thumbnail"><img src="img/2.jpg"></div>   <div class="caption">    <h2>漂亮的圖片</h2>    <p>漂亮的圖片.漂亮的圖片.</p>    <p><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="btn btn-primary" role="button">點你 </a>    <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="btn btn-default" role="button">就點你 </a>    </p>   </div>  </div><div class="col-sm-6 col-md-3">   <div class="thumbnail"><img src="img/2.jpg"></div>   <div class="caption">    <h2>漂亮的圖片</h2>    <p>漂亮的圖片.漂亮的圖片.</p>    <p><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="btn btn-primary" role="button">點你 </a>    <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="btn btn-default" role="button">就點你 </a>    </p>   </div>  </div><div class="col-sm-6 col-md-3">   <div class="thumbnail"><img src="img/2.jpg"></div>   <div class="caption">    <h2>漂亮的圖片</h2>    <p>漂亮的圖片.漂亮的圖片.</p>    <p><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="btn btn-primary" role="button">點你 </a>    <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="btn btn-default" role="button">就點你 </a>    </p>   </div>  </div><div class="col-sm-6 col-md-3">   <div class="thumbnail"><img src="img/2.jpg"></div>   <div class="caption">    <h2>漂亮的圖片</h2>    <p>漂亮的圖片.漂亮的圖片.</p>    <p><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="btn btn-primary" role="button">點你 </a>    <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="btn btn-default" role="button">就點你 </a>    </p>   </div>  </div> </div> <script src="js/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script>  </body> </html>

 效果圖

以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持武林網。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 城步| 天镇县| 望奎县| 临朐县| 三门县| 伊金霍洛旗| 丰镇市| 阳春市| 手游| 闸北区| 枣强县| 泰顺县| 沂水县| 遵义市| 石渠县| 龙胜| 隆回县| 溆浦县| 望城县| 义乌市| 临夏市| 平果县| 宜春市| 长春市| 哈密市| 竹溪县| 密山市| 晴隆县| 绩溪县| 类乌齐县| 衡阳市| 平塘县| 四子王旗| 昆明市| 高台县| 连山| 东乡族自治县| 麻城市| 三明市| 曲沃县| 景谷|