例如::checked 后需要同级的元素/相邻的元素发生改变时

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    /* 同级(兄弟级) */
    input[type="radio"]:checked+p {
      color: red;
    }

    /* 子级:input[type="radio"]:checked 子元素 {} */

    /* 相邻级 */
    input[type="radio"]:checked~h1 {
      color: olive;
    }
  </style>
</head>
<body>
  <input type="radio" name="" id="banner">
  <p>挟天子以令诸侯</p>
  <label for="banner">
    <div class="wrapper">点击我</div>
  </label>
  <h1>你好</h1>
</body>
</html>