CSS字体很棒的V6图标赢得了伪元素中的胜利
我正在使用Font Awesome V6。我已经拿到了应该出现的图标,但是我不能让它们在元素之前的::在::中对齐。
这是一个图像显示图标的出现方式:
您可以看到的图标都出现在之前的元素后面(圆圈)。指示缺失图像的框图像是图标出现的位置(图标清楚地显示在屏幕上,因此这不是缺少的图标问题)。
我已经在我网站上使用了字体很棒自定义标准ul
列表的子弹点,并且效果很好。这里唯一的区别是我正在使用nth-type()
选择器。如果我在内容中放置了Awesome Unicode,它的工作原理绝对可以。
我已经循环浏览所有位置,并在“ Inspect Element”上显示选项,无法正确定位。唯一有效的是,如果我操纵字体Awesome库添加的SVG元素,这有点不方便。
我试图搜索Google的解决方案,但是除了帖子之外找不到任何东西以寻求帮助以首先显示图像的帖子,这显然不是我在这里的问题。
感谢任何帮助,谢谢。
I'm using Font Awesome v6. I've gotten the icons to appear as they should but I can't get them to align within the ::before element.
Here's an image showing how the icons are appearing:
The icons, as you can see, are appearing behind the before element (the circle). The box image indicating a missing image is where the icon should appear (the icon is clearly displaying on the screen so this is not a missing icon issue).
I've already used the Font Awesome pseudo elements feature on my site to customise the bullet points for a standard ul
list and it worked fine. The only difference here is that I'm using the nth-of-type()
selector. It works absolutely fine if I put anything but a Font Awesome unicode in the content.
I've looped through all of the positions and display options on 'Inspect Element' and can't get it to position correctly. The only thing that works is if I manipulate the svg element that is added by the Font Awesome library, which is a bit inconvenient.
I've tried to search Google for solutions but can't find anything except posts which are asking for help to get the images to display in the first place, which is obviously not my issue here.
Any help is appreciated, thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论