Bootstrap CSS布局之图像

2019-11-26,,,,

本文大家分享了Bootstrap CSS布局之图像,供大家参考,具体内容如下

img-rounded、img-circle、img-thumbnail(缩放图模式)

//源码
img {
 vertical-align: middle;
}
.img-responsive,
.thumbnail > img,
.thumbnail a > img,
.carousel-inner > .item > img,
.carousel-inner > .item > a > img {
 display: block;
 max-width: 100%;
 height: auto;
}
.img-rounded {
 border-radius: 6px;
}
//缩略图模式
.img-thumbnail {
 display: inline-block;
 max-width: 100%;
 height: auto;
 padding: 4px;
 line-height: 1.42857143;
 background-color: #fff;
 border: 1px solid #ddd;
 border-radius: 4px;
 -webkit-transition: all .2s ease-in-out;
  -o-transition: all .2s ease-in-out;
   transition: all .2s ease-in-out;
}
.img-circle {
 border-radius: 50%;
}

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

您可能感兴趣的文章:

  • Bootstrap CSS布局之按钮
  • Bootstrap CSS布局之表单
  • Bootstrap CSS布局之表格
  • Bootstrap CSS布局之代码
  • Bootstrap CSS布局之列表
  • Bootstrap每天必学之栅格系统(布局)
  • bootstrap布局中input输入框右侧图标点击功能
  • 值得分享的最全面Bootstrap快速人门案例
  • 值得分享和收藏的Bootstrap学习教程

《Bootstrap CSS布局之图像.doc》

下载本文的Word格式文档,以方便收藏与打印。