【发布时间】:2018-10-30 11:09:45
【问题描述】:
我添加了 center-block 类,以便能够将 Torza 图像垂直居中。但是没有结果,有什么建议吗?
<?php
<div class="container">
<hr />
<div class="text-center center-block">
<a href="https://torza.nl" target="_blank"><img src="img/logo_torza.png" alt="Torza" width="85"></a>
<a href="https://torza.nl" target="_blank"><i class="fa fa-globe fa-2x social"></i></a>
<a href="https://www.linkedin.com/company/torza/" target="_blank"><i class="fa fa-linkedin-square fa-2x social"></i></a>
<a href="https://www.facebook.com/torzanl" target="_blank"><i class="fa fa-facebook-square fa-2x social"></i></a>
<a href="mailto:info@torza.nl"><i class="fa fa-envelope-square fa-2x social"></i></a>
</div>
<hr />
</div>
?>
【问题讨论】:
-
center-block用于水平居中,请提供您的 CSS -
你能把你的css和链接添加到你的图片吗
-
请显示与此 html 一起使用的 css
标签: css bootstrap-4