Ich möchte ein Bild zu einem Etikett hinzufügen, aber das Bild wird nicht angezeigt. Ich benutze das Spiel-Framework.Bild erscheint nicht auf einem Etikett
Was ich versuche zu tun, ist ein Bild anstelle eines Kontrollkästchens, wo das Bild die Rolle eines Kontrollkästchens spielt.
input[type="checkbox"] {
opacity:0;
height: 16px;
width: 17px;
position: absolute;
top: 0;
left: 0;
z-index: 2;
}
input[type="checkbox"] + label{
background-image: url("/assets/images/help.jpg");
height: 16px;
width: 17px;
display:inline-block;
padding: 0 0 0 0px;
position: absolute;
top: 0;
left: 0;
z-index: 1;
}
input[type="checkbox"]:checked + label{
background-image: url("/assets/images/help.jpg");
height: 16px;
width: 17px;
display:inline-block;
padding: 0 0 0 0px;
}
<label class="checkbox_wrapper navbar-text navbar-right font-size-8pt margin-bottom-0px"><input type="checkbox" id="enable-help"><label></label></label>
ich jede Ausgabe – Manish62
yhh nicht sehen können, dass das Problem ist. Das Bild wird nicht angezeigt. –