label標簽
?<label for="basketball">籃球</label>
? <input type="checkbox" name="basketball" id="basketball" />
在多選的語法中,value是可以省去嗎?后面的id不是很懂,求指點
?<label for="basketball">籃球</label>
? <input type="checkbox" name="basketball" id="basketball" />
在多選的語法中,value是可以省去嗎?后面的id不是很懂,求指點
2017-08-21
舉報
2017-08-21
label 相當于一個連接,點擊Label標簽顯示的文字(籃球),自動定位到 ?Label ?for 對應的 id?
2017-08-27
label定義了一個標簽,標簽是什么,就是一句話,給這個標簽賦予一個屬性for,for屬性的內容就是我們點擊這個標簽時轉到的地方。http://www.w3school.com.cn/html/html_attributes.asp你可以到這個網址看看屬性的介紹