凡客建站_怎么建设网站_建网_企业网站怎么建立_网站建设官网
当前位置:建站首页 > 新闻资讯 > 员工天地 >

小程序装修模板_Bootstrap缩略图的创建方法

发表日期:2021-01-12 12:51文章编辑:jianzhan浏览次数: 标签:    

Bootstrap缩略图的创建方法       这篇文章主要介绍了Bootstrap缩略图的创建方法,教大家如何实现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; 
 color: #6A031A; 
 size: 24px; 
 /style 
 /head 
 body 
 div 
 div 
 div img src="img/2.jpg" /div 
 div 
 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" 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" role="button" 就点你 /a 
 /div 
 /div 
 div 
 div img src="img/2.jpg" /div 
 div 
 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" 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" role="button" 就点你 /a 
 /div 
 /div 
 div 
 div img src="img/2.jpg" /div 
 div 
 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" 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" role="button" 就点你 /a 
 /div 
 /div 
 div 
 div img src="img/2.jpg" /div 
 div 
 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" 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" role="button" 就点你 /a 
 /div 
 /div 
 div 
 div img src="img/2.jpg" /div 
 div 
 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" 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" role="button" 就点你 /a 
 /div 
 /div div 
 div img src="img/2.jpg" /div 
 div 
 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" 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" role="button" 就点你 /a 
 /div 
 /div div 
 div img src="img/2.jpg" /div 
 div 
 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" 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" role="button" 就点你 /a 
 /div 
 /div div 
 div img src="img/2.jpg" /div 
 div 
 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" 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" role="button" 就点你 /a 
 /div 
 /div 
 /div 
 script src="js/jquery.min.js" /script 
 script src="js/bootstrap.min.js" /script 
 /body 
 /html 

 效果图

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持凡科。


相关新闻