提问者:小点点

我需要像这样在一个有CSS[关闭]的div中悬停


我用flexbox创建了div,我需要做一个像图片中的悬停。


共2个答案

匿名用户

使用CSS box-shadow属性:

#[here is your element name]:hover {
    box-shadow: inset 0 0 10px #0000ff;
}

匿名用户

您可以使用box-shadowinset关键字:

.element:hover {
    box-shadow: inset 0 0 10px #000000;
}