📜  专注于输入更改标签颜色 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:59.535000             🧑  作者: Mango

代码示例1
.input-group {
    display: flex;
    flex-direction: column-reverse;
}

input:focus + label {
    color: red;
}