gpt4 book ai didi

html - 将图像链接居中对齐

转载 作者:行者123 更新时间:2023-11-28 18:14:52 24 4
gpt4 key购买 nike

我在 div 中有一些图片链接,我想将它们对齐到 div 的中心:

<div id="tecnologies">
<div id="footerpics">
<a href=""><img src="pics/pythonsmall.png" alt=""></a>
<a href="‎"><img src="pics/djanogsmall.png" alt=""></a>
<a href=""><img src="pics/bluefishsmall.png" alt=""></a>
<a href=""><img src="pics/gimpsmall.png" alt=""></a>
</div>
</div>

这是 CSS:

footer {
width: 977px;
background-color: #BFBFBF;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
}

#tecnologies {
margin: 0 auto;
direction: ltr;
font-size: 12px;
}

#tecnologies a {
margin: 0 auto;
}

#footerpics {
width: auto;
margin: 0 auto;
}

代码无效。
我尝试了不同的方法,但都没有成功。
我应该怎么做?

最佳答案

#footerpics { text-align:center; }

关于html - 将图像链接居中对齐,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18026789/

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