指示span内的按钮元素不在firefox中工作。

时间:2022-01-08 20:18:33

I have a tooltip custom directive on span element and this span element is placed inside button element. On hover i want to show that tooltip

我在span元素上有一个工具提示自定义指令,这个span元素被放在按钮元素里面。在鼠标悬停时,我想显示工具提示

1 个解决方案

#1


0  

do something like this in css

在css中做类似的事情吗?

button>span{
    display:none;
}
button:hover button>span{
    display:block;
}

#1


0  

do something like this in css

在css中做类似的事情吗?

button>span{
    display:none;
}
button:hover button>span{
    display:block;
}