|
本帖最后由 Mr.ZhouHeng 于 2019-9-26 10:19 编辑
.activebg {
position: relative;
}
.activebg::before {
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 100%;
background-color: #000;
border: inherit;
border-color: #000;
border-radius: inherit;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
opacity: 0;
content: ' ';
}
.activebg:active::before {
opacity: .1
}
|
|