暂停图标
.icon {
width: 50px;
height: 50px;
border: 1px solid black;
border-radius: 100%;
outline: 10px solid red;
outline-offset: -26px; //偏移量为width/2 + border
}
加号
.icon {
width: 50px;
height: 50px;
border: 1px solid black;
border-radius: 100%;
outline: 10px solid red;
outline-offset: -35px;太大太小都不会出现加号,与矩形的偏移量多9px;
}
关闭按钮
.icon {
width: 50px;
height: 50px;
border-radius: 100%;
outline: 10px solid red;
outline-offset: -35px;太大太小都不会出现加号,与矩形的偏移量多9px;
transform: rotate(45deg);
background: #000;
}
后续再更新