The selection style of men and women

clipboard.png
html

jschecked

clipboard.png
css is like this, so it should not be the problem of css.
ask for advice.

Jan.25,2022

<label><input name="Fruit" type="radio" value="" /> </label>
<label><input name="Fruit" type="radio" value="" /> </label>
<label><input name="Fruit" type="radio" value="" /> </label>

look at the style you write: the unselected and selected pictures are designed by yourself; in this case, you need to use js to control it, so there is a problem with your js writing.
js controls the selected and unselected states, and does not need to write style pseudo-classes, but directly controls display and hiding.

Menu