-2
如何将:: after元素作为目标:hover?目标::之后:悬停状态
<button class="panel-watch">
Watch online
::after
</button>
我已经试过这一点,但它似乎并没有做到这一点:
button.panel-watch:hover ::after {
border-color:white transparent transparent transparent!important;
}
我只想重新夹具的HTML/CSS,以适应更好,但它散发出来的盒状的这个。在之间hover
和::after
装置选择想要的button.panel-watch
子元素
button.panel-watch:hover::after {}
的空间:
不要在两者之间留出空间。 'selector:hover :: after'应该可以工作。 – Harry