我尝试在鼠标指针悬停在帮助图标上时显示一个 <span>
。
这个方法有效,但是我仍然无法去掉图标周围的边框。
我的 CSS 代码:
.info{
position:absolute;
border:none;
}
a.info{
position:absolute;
z-index:24;
background:none;
color:#000;
text-decoration:none
}
a.info:hover{
z-index:25;
background-color:#FFF;
cursor:help;
}
a.info span{
display: none
}
a.info:hover span{
display:block;
position:absolute;
cursor:help;
bottom:0px;
left:26px;
width:150px;
padding:4px;
}
CD
.info img {}
- Boldewyndiv
标签代替img
标签。 - user2606357