CSS-图片拒绝在中间垂直对齐

时间:2019-07-09 15:41:49

标签: css image vertical-alignment

图片不在div的中间。

尝试了各种解决方案,例如line-height和vertical-align:middle;

.trio {
  height: 80px;
  line-height: 80px;
  background: #f2f2f2;
}

.wp-image-6731,
.wp-image-6733,
.wp-image-6733 {
  vertical-align: middle
}
<div class="trio">
  <img class="wp-image-6733 size-full aligncenter" src="https://proef-domein.nl/chiropractic/wp-content/uploads/2019/06/2.png" alt="" width="103" height="31">
</div>

0 个答案:

没有答案