[英]Bootstrap 3 image not responsive
I have the following bootstrap config: http://www.bootply.com/118172 我有以下bootstrap配置: http : //www.bootply.com/118172
Could you tell me why the image isn't behaving responsively? 你能告诉我为什么图像不响应吗? Ie I want it to shrink to be the same height as the div on the left hand side..
即我希望它缩小到与左侧div相同的高度。
The Bootstrap img-responsive
is based on width , not height. Bootstrap
img-responsive
是基于宽度而不是高度。 This class will make the width 100% of it's container. 这个类将使宽度为100%的容器。 If you want to make it the same height of the left div you can use..
如果你想使它与左div的高度相同,你可以使用..
<img src="http://i.imgur.com/fPoX3wW.jpg" height="100" alt="Email">
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.