为什么点击女会选择男 女id同样也是female
<form>
<label for ="male">男</label>
<input type="radio" name="gender" id="female" />
<br />
<label for="female">女</label>
<input type="radio" name="gender" id="female" />
</form>
<form>
<label for ="male">男</label>
<input type="radio" name="gender" id="female" />
<br />
<label for="female">女</label>
<input type="radio" name="gender" id="female" />
</form>
2019-12-06
举报