在 Bootstrap 中,您可以设置 an 的类以随视口(viewport)调整大小:
<img src="..." class="img-responsive">
如何将 Bootstrap 与 CSS 背景图片一起使用?
background: url(../images/MyImage.png) center center no-repeat;
最佳答案
尝试将这一行添加到您的 CSS 代码中。
background-size: cover;
关于css - Bootstrap - 将图像响应添加到 CSS 背景图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24005876/