How to select label for=“XYZ” in CSS?

后端 未结 3 1871
忘掉有多难
忘掉有多难 2020-11-28 01:36

HTML:

CSS:

label {
  display: block;         


        
3条回答
  •  粉色の甜心
    2020-11-28 02:14

    If the label immediately follows a specified input element:

    input#example + label { ... }
    input:checked + label { ... }
    

提交回复
热议问题