提到 CSS 状态切换,大家都能想到 input type=“checkbox” 吧。这里我们也需要用到这个特性,首先加一个 input,然后把之前的 button 换成 label ,并且通过 for 属性关联起来!
<div class="wrap">
<input type="checkbox" id
提到 CSS 状态切换,大家都能想到 input type=“checkbox” 吧。这里我们也需要用到这个特性,首先加一个 input,然后把之前的 button 换成 label ,并且通过 for 属性关联起来!
<div class="wrap">
<input type="checkbox" id