gpt4 book ai didi

html - 将文本对齐到 div 的中间

转载 作者:行者123 更新时间:2023-11-28 02:01:33 25 4
gpt4 key购买 nike

基本上,我试图将“查看完整文章(0 条评论)”文本与下面链接页面上深蓝色 div 中的箭头中间对齐。

我已经尝试过行高,但没有用。有什么想法吗?

http://www.prxa.info/

最佳答案

这取决于你想要多花哨,我会在这里使用相对/绝对定位,这样就可以了

.articles-bottom { position: relative; }

.articles-bottom a { left: 30px; position: absolute; top: 7px; }

应该这样做。

关于html - 将文本对齐到 div 的中间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13672605/

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