0
例如256px?Bootstrap 3的'img-responsive' - 它可以将最大宽度设置为px吗?
我想要图像更改大小,但不是大于256像素。
我google了这个,但一度没有解决方案。
任何人都知道如何做到这一点或以其他方式做到这一点?
例如256px?Bootstrap 3的'img-responsive' - 它可以将最大宽度设置为px吗?
我想要图像更改大小,但不是大于256像素。
我google了这个,但一度没有解决方案。
任何人都知道如何做到这一点或以其他方式做到这一点?
您可以覆盖默认的引导映像响应类来实现此目的。以下是相同的代码。
.img-responsive, .thumbnail > img, .thumbnail a > img, .carousel-inner > .item > img, .carousel-inner > .item > a > img {
max-width: 256px;
}