Usa CSS para dibujar ganchos y cruces.

gancho de implementación css √

.right {
    
    
  width: 28px;
  height: 28px;
  line-height: 26px;
  border: 1px solid #025299;
  background-color: #025299;
  position: relative;
  cursor: pointer;
}

.right::before {
    
    
  position: absolute;
  content: " ";
  width: 7px;
  height: 13px;
  transform: rotate(45deg);
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  top: 4px;
  left: 9px;
}

bifurcación de implementación css x

.error {
    
    
  width: 28px;
  height: 28px;
  line-height: 26px;
  border: 1px solid #025299;
  background-color: #025299;
  position: relative;
  cursor: pointer;
}

.error::before,
.error::after {
    
    
  content: "";
  position: absolute;
  height: 18px;
  width: 2px;
  top: 5px;
  left: 12px;
  background: #fff;
}
.error::before {
    
    
  transform: rotate(45deg);
}
.error::after {
    
    
  transform: rotate(-45deg);
}

Mostrar resultados
Inserte la descripción de la imagen aquí

Supongo que te gusta

Origin blog.csdn.net/glorydx/article/details/114808773
Recomendado
Clasificación