gpt4 book ai didi

html - 重复的工具提示修复?

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

有什么办法可以删除默认工具提示吗?

截图:

double tooltip

这是我的 HTML:

<div class="filter-button"><a href="/category/work/" title="Work" class="tooltip"><img src="/themes/Phyre/css/img/work.png"></a></div>

...这是我的 CSS:

.tooltip{
display: inline;
position: relative;
}

.tooltip:hover:after{
background: #6C8095;
border-radius: 5px;
bottom: 76px;
color: #fff;
text-align: center;
text-transform: uppercase;
content: attr(title);
left: 10%;
padding: 5px 10px;
position: absolute;
z-index: 98;
}

.tooltip:hover:before{
border: solid;
border-color: #6C8095 transparent;
border-width: 6px 6px 0 6px;
bottom: 70px;
content: "";
left: 40%;
position: absolute;
z-index: 99;
}

最佳答案

替换

title="Work"

data="Work"

content: attr(title);

content: attr(data);

关于html - 重复的工具提示修复?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20931801/

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