A blog to explore, learn-6ren">
gpt4 book ai didi

css - Jumbotron 中的社交偶像更近了

转载 作者:行者123 更新时间:2023-11-28 05:35:41 26 4
gpt4 key购买 nike

我正在尝试缩小社交图标之间的间隙/边距,并使其在文本下方居中。

Jumbotron

代码如下:

div class="jumbotron"><!-- Jumbotron -->
<div class="container1">
<p>A blog to explore, learn, and share Electro Funk, Soul, & Hip Hop Music</p>

<div id="social"><!-- Social Icons -->
<div id="twitter" class="col-md-4">
<a href="https://twitter.com/FunkFantasizers" target="_blank"><i class="fa fa-twitter-square fa-2x" aria-hidden="true"></i></a>
Twitter
</div>
<div id="instagram" class="col-md-4">
<i class="fa fa-instagram fa-2x" aria-hidden="true"></i>
Instagram
</div>
<div id="soundcloud" class="col-md-4">
<a href="https://soundcloud.com/funk-fantasizers" target="_blank"><i class="fa fa-soundcloud fa-2x" aria-hidden="true"></i></a>
Soundcloud
</div>

</div>
</div>

最佳答案

最好不要为每个图标使用单独的列,而是使用围绕它们的一列:

<div id="social" class="col-md-12 text-center"><!-- Social Icons -->
<div id="twitter">
<a href="https://twitter.com/FunkFantasizers" target="_blank"><i class="fa fa-twitter-square fa-2x" aria-hidden="true"></i></a>
Twitter
</div>
<div id="instagram">
<i class="fa fa-instagram fa-2x" aria-hidden="true"></i>
Instagram
</div>
<div id="soundcloud">
<a href="https://soundcloud.com/funk-fantasizers" target="_blank"><i class="fa fa-soundcloud fa-2x" aria-hidden="true"></i></a>
Soundcloud
</div>
</div>

关于css - Jumbotron 中的社交偶像更近了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38232233/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com