为什么图像以这种方式出现,..?
<div id='container'>
<div class='imgContainer'>
<div class='myLocation'>
<img src='https://graph.facebook.com/1055505/picture' style='width:30px'>
Tova Schherr
</div>
</div>
<div class='imgContainer'>
<div class='myLocation'>
<img src='https://graph.facebook.com/1205050/picture' style='width:30px'>
Alison Carmel
</div>
</div>
..... ..
......
</div>
您必须知道数据是用于显示示例的样本,因此它不会起作用。
这里是 myLocation 的 CSS 类
.myLocation
{
margin-bottom:1px;
width:100%;
background-color:#F7F7F7;
color:#006699;
padding:7px;
padding-right:12px;
}
最佳答案
也许,您的文档类型需要关闭图像标签。
<img src="" />
关于css - div 中 html 中的图像不会出现在彼此下方(请看图片)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7539406/