如何在 twitter-bootstrap 中停止图像响应? [英] how to stop image responsive in twitter-bootstrap?
本文介绍了如何在 twitter-bootstrap 中停止图像响应?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 twitter bootstrap 来制作响应式布局.它的效果非常棒.
I'm using twitter bootstrap to making responsive layout.It works like awesome.
它使图像过于敏感.我需要一些图像只需要固定宽度和高度.
It makes images too responsive. I need some images only need to be fixed width and height.
<div class="span1"><img src="http://i.ytimg.com/vi/uGBKzIY4mpc/0.jpg" width="50" height="40"></div>
我该怎么做?
推荐答案
终于成功了.
.fixed_width {
height: 40px;
width: 50px;
}
<div class="span1"><img src="http://i.ytimg.com/vi/uGBKzIY4mpc/0.jpg" class="fixed_width" ></div>
这篇关于如何在 twitter-bootstrap 中停止图像响应?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文