【发布时间】:2014-02-07 04:44:38
【问题描述】:
我目前正在使用模板设置引导网站,我有一个宽度相当大的徽标,有人告诉我最好将其分成 3 个单独的图像,以使它们作为名称更具响应性该公司是“直言不讳的解决方案”。我已经拆分了图像,当我将它们放入网站时,它们只是彼此堆叠,我试图使图像更小,但没有运气。我也尝试过使用和不使用.img-responsive 类。我会附上屏幕截图,但我不能抱歉。在此先感谢,丹。
这里是HTML代码
<div class="col-sm-4 col-md-4 logo">
<a class="logo" href="index.html">
<img alt="logo" title="straight talking solutions" src="img/STS/straight.png" class=""/>
<img alt="logo" title="straight talking solutions" src="img/STS/talking.png" class=""/>
<img alt="logo" title="straight talking solutions" src="img/STS/solutions.png" class="" />
</a>
</div>
CSS
.img-responsive {
display: block;
max-width: 100%;
height: auto;
}
希望对你有帮助
【问题讨论】:
-
我们需要更多信息。请在您的帖子中发布您的 HTML 和 CSS。
-
您希望边框围绕所有 3 个图像还是单独围绕每个图像?
-
您可能不需要拆分图像...而且您的 html 没有 img-responsive 类
-
我想要所有的边框。 @LeoJweda
-
是的@Huangism 我把它拿出来忘记添加了。
标签: html css image twitter-bootstrap