<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>form中的lable标签</title>
</head>
<body>
<form>
<label for="male">男</label>
<input type="radio" name="gender" id="male" />
<br />
<label for="female">女</label>
<input type="radio" name="gender" id="female" />
<br />
<label for="fmail">天</label>
<label type="radio" name="gender" id="fmail" />
<br />
<label for="email">输入你的邮箱地址</label>
<input type="email" id="email" placeholder="Enter email">
</form>
</body>
</html>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>form中的lable标签</title>
</head>
<body>
<form>
<label for="male">男</label>
<input type="radio" name="gender" id="male" />
<br />
<label for="female">女</label>
<input type="radio" name="gender" id="female" />
<br />
<label for="fmail">天</label>
<label type="radio" name="gender" id="fmail" />
<br />
<label for="email">输入你的邮箱地址</label>
<input type="email" id="email" placeholder="Enter email">
</form>
</body>
</html>
第17行的input写成了label标签,label是文本,所以无法出现单选框
<label for="fmail">天</label>
<label type="radio" name="gender" id="fmail" />加重的lable改成input
<label for="fmail">天</label>
<input type="radio" name="gender" id="fmail" />
<label type="radio" name="gender" id="fmail" />
应改为
<input type="radio" name="gender" id="fmail />
<input type="radio"> 才会输出单选框
天下面的一行应该是input type="radio" name="gender" id="fmail"
"天"的标签用错了
<input type="radio" name="gender" id="fmail" />
<label for="fmail">天</label>
<label type="radio" name="gender" id="fmail" />
<br />
智力第二行应该是input吧
应将id=fmail的label标签更改为input
天 那个应该是input吧
代码是没有问题的,你试试换个浏览器
最后那个radio写错了,不是<label type="radio" name="gender" id="fmail" /> 是<input type="radio" name="gender" id="fmail" />