gpt4 book ai didi

html - 如何使悬停效果仅在之前的内容上,即 "\f00d"?

转载 作者:行者123 更新时间:2023-11-28 17:03:54 25 4
gpt4 key购买 nike

我希望我的悬停效果仅在悬停到之前的内容时激活。

enter image description here

enter image description here

最佳答案

使用 fryd-viewer-wrapper:hover:before

a:before {
font-family: 'Font Awesome 5 Free';
content: "\f008";
font-weight: 900;
}
a:hover:before {
color:red;
}
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">


<a>Try me</a>

关于html - 如何使悬停效果仅在之前的内容上,即 "\f00d"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50895184/

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