Bootstrap 3图像无响应

时间:2014-03-03 03:37:47

标签: html css twitter-bootstrap twitter-bootstrap-3

我有以下bootstrap配置:http://www.bootply.com/118172

你能告诉我为什么图像不响应吗?即我希望它缩小到与左侧div相同的高度。

1 个答案:

答案 0 :(得分:2)

Bootstrap img-responsive基于 width ,而非高度。这个类将使宽度为100%的容器。如果你想使它与左div的高度相同,你可以使用..

 <img src="http://i.imgur.com/fPoX3wW.jpg" height="100" alt="Email">