html ------ label 标签的 for 属性

<form>
  <label for="male">Male</label>
  <input type="radio" name="sex" id="male" />
  <br />
  <label for="female">Female</label>
  <input type="radio" name="sex" id="female" />
</form>

 

 

posted @ 2018-12-19 10:42  流水灯  阅读(246)  评论(0编辑  收藏  举报