最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Bootstrap縮略圖的創(chuàng)建方法

 更新時間:2017年03月22日 08:54:11   作者:boonyaxnn  
這篇文章主要介紹了Bootstrap縮略圖的創(chuàng)建方法,教大家如何實現(xiàn)Bootstrap縮略圖,具有一定的參考價值,感興趣的小伙伴們可以參考一下

Bootstrap 創(chuàng)建縮略圖的步驟如下:

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

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

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>

 效果圖

以上就是本文的全部內(nèi)容,希望對大家的學習有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

  • javascript按鈕禁用和啟用的效果實例代碼

    javascript按鈕禁用和啟用的效果實例代碼

    這篇文章主要介紹了javascript按鈕禁用和啟用的效果實例代碼,需要的朋友可以參考下
    2017-10-10
  • 基于Bootstrap的Java開發(fā)問題匯總(Spring MVC)

    基于Bootstrap的Java開發(fā)問題匯總(Spring MVC)

    這篇文章主要為大家匯總了基于Bootstrap的Java開發(fā)問題,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2017-01-01
  • JavaScript簡寫技巧

    JavaScript簡寫技巧

    這篇文章主要介紹了JavaScript簡寫技巧,運用簡寫技巧,可以加快開發(fā)速度,讓開發(fā)工作事半功倍,大家感興趣的話可以參考本篇文章
    2021-08-08
  • echarts X軸顯示不全的處理方法(顯示完全以及換行)

    echarts X軸顯示不全的處理方法(顯示完全以及換行)

    我們在echarts表中經(jīng)常會出現(xiàn)X軸的信息顯示不完全的情況,所以本文小編給大家介紹了echarts X軸顯示不全的處理方法,文中通過代碼示例給大家介紹的非常詳細,具有一定的參考價值,需要的朋友可以參考下
    2024-01-01
  • javascript顯示用戶停留時間的簡單實例

    javascript顯示用戶停留時間的簡單實例

    這篇文章介紹了javascript顯示用戶停留時間的簡單實例,有需要的朋友可以參考一下
    2013-08-08
  • js實現(xiàn)五星評價功能

    js實現(xiàn)五星評價功能

    本文主要介紹了js實現(xiàn)五星評價功能和印象評價功能的實例,具有很好的參考價值。下面跟著小編一起來看下吧
    2017-03-03
  • 2012世界末日倒計時代碼 原來沒事虛驚一場

    2012世界末日倒計時代碼 原來沒事虛驚一場

    這款時世界末日倒計時源代碼,程序上有JS控制器,是用于網(wǎng)頁中顯示的倒計時器,自己可以設定世界末日的開始時間,網(wǎng)頁倒計時世界末日源代碼直接復制就可以用
    2012-12-12
  • 使用JS實現(xiàn)簡單的圖片切換功能

    使用JS實現(xiàn)簡單的圖片切換功能

    這篇文章主要為大家詳細介紹了使用JS實現(xiàn)簡單的圖片切換功能,文中示例代碼介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2022-07-07
  • JavaScript實現(xiàn)鼠標懸浮頁面切換效果

    JavaScript實現(xiàn)鼠標懸浮頁面切換效果

    這篇文章主要為大家詳細介紹了JavaScript實現(xiàn)鼠標懸浮頁面切換效果,文中示例代碼介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2022-03-03
  • ES6的解構(gòu)賦值實例詳解

    ES6的解構(gòu)賦值實例詳解

    解構(gòu)賦值允許你使用類似數(shù)組或?qū)ο笞置媪康恼Z法將數(shù)組和對象的屬性賦給各種變量。這篇文章主要介紹了ES6的解構(gòu)賦值的實例代碼 ,需要的朋友可以參考下
    2019-05-05

最新評論

咸阳市| 攀枝花市| 凤翔县| 北安市| 五常市| 鄂托克前旗| 长海县| 宜兰县| 澄江县| 佛山市| 靖安县| 阳泉市| 太原市| 额济纳旗| 和田县| 武城县| 兴安盟| 临夏县| 云浮市| 原平市| 天柱县| 开平市| 客服| 会同县| 萨嘎县| 富阳市| 凉城县| 唐河县| 西乌珠穆沁旗| 辽阳县| 西藏| 赫章县| 扎鲁特旗| 阳山县| 绥中县| 周宁县| 达州市| 德令哈市| 土默特右旗| 商城县| 瑞安市|