【发布时间】:2013-10-21 14:36:26
【问题描述】:
我的问题是我想内联显示的图像以列表形式显示。我不知道我做错了什么,因为在我看来一切都是正确的。
html
<div class="loga">
<img style="display:inline;" src="photos/logoWUT_czarne.PNG" width="370" height="135">
<img style="display:inline;" src="photos/bosch_logo_gray.png" height="115" width="380" >
<img style="display:inline;" src="photos/general-electric-logo-png_gray.png" height="115" width="115" >
</div>
CSS
.loga {
display: inline-block;
}
我的代码一定有问题,因为它在任何浏览器中都不起作用。
【问题讨论】:
-
您必须减小图像的宽度以适应容器。
-
否则,你可以浮动你的内容
标签: html css image drupal inline