这显示了图像。我想在垂直位置的中心和中间显示图像。
但这仍然显示它在顶部和左侧。
我该如何解决?
<div class="Row">
<div class="Box">
<div class="Left">
<div class="title"><a href="/communities/california">California</a></div>
<div class="icon" style=";vertical-align:middle;text-align:center;">
<a href="/users/John"><img alt="356" src="/images/356.jpg" style="max-width: 100px; min-width: 100px" /></a>
</div>
<div class="message">
<div class="body"><a data-original-title="California" class="btn" rel="popover" data-placement="top" data-content="Test">Read</a></div>
<a href="/users/sign_in" class="btn btn-primary">Message</a>
</div>
</div>
</div>
</div>
更新
<div class="Row">
<div class="Box">
<div class="Left">
<div class="title"><a href="/communities/california">California</a></div>
<div class="icon" style="display: table;">
<a href="/users/John"><img alt="356" src="/images/356.jpg" style="display: table-cell;vertical-align: middle;text-align: center;" /></a>
</div>
<div class="message">
<div class="body"><a data-original-title="California" class="btn" rel="popover" data-placement="top" data-content="Test">Read</a></div>
<a href="/users/sign_in" class="btn btn-primary">Message</a>
</div>
</div>
</div>
</div>