I Bild in CSS mit Bootstrap glyphicons ersetzen möchtenersetzen Bild mit Bootstrap Glyphicons
hier mein Code:
.inputShowPwd > .showpass {
display: none;
position: absolute;
height: 24px;
width: 24px;
top: 50%;
margin-top: -12px;
right: 6px;
background:url(image/show.png) 50% 50% no-repeat;
}
dies die Vorschau des Codes ist:
Eigentlich ist es funktionierte wollen, aber ich es mit Bootstrap glyphicons zu ersetzen, weil aus dem Bild angebracht ich, wenn ich in ihm, ich das Bild geworden Unschärfe
so möchte fragen, zeigen heran wie Bild mit Bootstrap Glyphicons in CSS ersetzen? jeder Vorschlag würde
Hallo, @Sachin Sanchaniya Dank für die Antwort auf meine Frage, ich möchte stattdessen in html das Auge Bild in CSS-Stil ersetzen. ich meinen Code auf CSS aktualisieren und es funktionierte bereits. .inputShowPwd> .showpass { /* Rahmen: 1px fest #ddd; */ Anzeige: keine; Position: absolut; Höhe: 24px; Breite: 24px; oben: 50%; Rand oben: -10px; rechts: 2px; } .inputShowPwd> .showpass: nach { Inhalt: "\ f06e"; font-family: "FontAwesome"; } –
Er will, dass das Bild über CSS ersetzen und den HTML nicht restrukturieren. – Aslam