0
Ich versuche, die Beschriftung zu beeinflussen, wenn der Eingang fokussiert ist. Aus welchem Grund auch immer wird die CSS für das Label nicht erkannt, wenn die Eingabe fokussiert ist.CSS ändert mit Fokus-Attribut auf Eingabefeld
li.sm-vol label {
position: absolute;
top: 33px;
width: 100%;
background: #462770;
color: #fff;
font-weight: 400 !important;
padding-left: 10px;
transition: all 0.2s ease;
}
li.sm-vol input:focus li.sm-vol label {
top: 15px;
}
Könnten Sie den HTML-Code als Referenz hinzufügen? Es würde helfen, den Code und sein Verhalten zu verstehen. – Buffalo
http://meta.stackexchange.com/q/5234 – Stickers