我怎样才能在div div中对齐img而不使用margin-top大小?img垂直对齐格div
我改变显示器tablle细胞和垂直对齐:中间却不行 DEMO
<div style="
border: 1px solid rgba(83, 87, 91, 0.67);
float: right;
height: 39px;
line-height: 39px;
width: 15%;
">
<img style="margin:auto;
display:block;" src=http://up.tractorfc.com/images/73529783235062014043.png />
</diV>
http://jsbin.com/uBeVEzO/1/edit一个小窍门,用'保证金:auto'。确保使顶部,底部,左侧和右侧0这个工作 – barrigaj