這里不需要寫value嗎?
<label for="male">男</label>
? <input type="radio" name="gender" id="male" />
? <br />
? <label for="female">女</label>
? <input type="radio" name="gender" id="female" />
第二行和第四行
<label for="male">男</label>
? <input type="radio" name="gender" id="male" />
? <br />
? <label for="female">女</label>
? <input type="radio" name="gender" id="female" />
第二行和第四行
2017-02-27
舉報
2017-03-01
謝謝啦
2017-02-27
? ? ? ?在這里,著重講的是label標(biāo)簽的用法,所以忽略了input標(biāo)簽的一些東西。在實際情況下,是肯定要加的,因為這個value涉及到后臺的取值問題,所以這里并不是input標(biāo)簽用錯了,前面所講的并不沖突。