小编ale*_*305的帖子

从工具提示隐藏标题

我正在使用CSS制作工具提示.现在使用以下html代码

<div title="This is some information for our tooltip." class="progress3">
</div>
Run Code Online (Sandbox Code Playgroud)

和以下CSS

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

.progress3:hover:after{
background: #333;
background: rgba(0,0,0,.8);
border-radius: 5px;
bottom: 26px;
color: #fff;
content: attr(title);
left: 20%;
padding: 5px 15px;
position: absolute;
z-index: 98;
width: 220px;
content: attr(title);
}

.progress3:hover:before{
border: solid;
border-color: #333 transparent;
border-width: 6px 6px 0 6px;
bottom: 20px;
content: "";
left: 50%;
position: absolute;
z-index: 99;
}
Run Code Online (Sandbox Code Playgroud)

现在它可以工作,当我将鼠标悬停在它上面时显示工具提示,但它也会显示标题...如何删除下图中以橙色圈出的内容.

在此输入图像描述

html css edit tooltip

10
推荐指数
1
解决办法
2万
查看次数

标签 统计

css ×1

edit ×1

html ×1

tooltip ×1