在Bootstrap 4中没有img-responsive响应 [英] No img-responsive in Bootstrap 4

查看:1460
本文介绍了在Bootstrap 4中没有img-responsive响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载了Bootstrap 4 alpha 2的源代码,但在其中找不到类 img-responsive 。它存在于Bootstrap 3源代码中,我可以用Notepad ++找到它,但是在 dist 文件夹中的Bootstrap 4s bootstrap.css 它不存在。

I just downloaded the source code for Bootstrap 4 alpha 2 and can't find the class img-responsive in it. It exists in Bootstrap 3 source code and I can find it with Notepad++ but in Bootstrap 4s bootstrap.css in dist folder it doesn't exist.

它发生了什么?

推荐答案

来自 Bootstrap 4文档


Bootstrap中的图像通过.img-fluid响应。最大宽度:100%;和身高:汽车;应用于图像,以便它与父元素一起缩放。

Images in Bootstrap are made responsive with .img-fluid. max-width: 100%; and height: auto; are applied to the image so that it scales with the parent element.

这篇关于在Bootstrap 4中没有img-responsive响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆