<ul class="random-list">
<li>
<div class="random-container">
<div class="inline-block" style="vertical-align: top;">
<img src="" />
</div>
<div class="inline-block" style="vertical-align: top;">
<a href="">Name</a>
</div>
</div>
</li>
</ul>
和CSS:
.random-container {
margin-bottom: 10px;
width: 100%;
}
.inline-block {
display: inline-block;
}
结果:
如何修复此错误: