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

标签 html css duplicates tooltip

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

截图:

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/

相关文章:

powershell - 如何在Powershell哈希中查找重复值

mysql - SQL : How to get an occurrence count of unique values from a query complicated by joins?

MYSQL - 查找并显示日期差异标准内的所有重复项

javascript - 带有手绘线条的 HTML5 Canvas

css - 文本溢出 : ellipsis inside flexible height div inside a div with a limited height

javascript - 如何在表单字段输入中生成简短的唯一代码?

javascript - 如何将ListBox的高度设置为自动

css - 如何防止宽度设置为自动的元素中的小数像素?

用于滑动菜单的 jQuery 插件(如 mmenu)

html - 图像被部分剪裁