label for="name" 无效啊?为什么
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>单选框、复选框</title> </head> <body> <form action="save.php" method="post" > <label>性别:</label> <label for="sex">男</label> <input type="radio" value="1" name="sex" /> <label for="sex">女</label> <input type="radio" value="2" name="sex" /> </form> </body> </html>
chrome无效啊,点击 男或者 女