我知道alt
是鏈接到圖片時顯示信息不正確,title
是顯示懸停信息,name
是發送信息,確切地說是用戶點擊該圖像,但value
有什麼用?在input type =「image」標籤中,屬性值代表什麼?
2
A
回答
5
爲它說輸入元件圖像按鈕狀態見http://w3c.github.io/html/sec-forms.html#image-button-state-typeimage
在簿記細節:
元素的value屬性必須是 刪去。
I.e.不要使用它。其存在的任何影響可能都是瀏覽器特定的。
2
<input type='image' />
元素是一個按鈕,value=''
屬性是用戶單擊它時將要提交的值。
相關問題
- 1. INPUT type = image,如何獲得座標值?
- 2. 從request.getParameter()中獲取Input type =「image」的值
- 3. 如何刪除標籤<input type =「file」>中的屬性「
- 4. <input>標籤中'acceskey'屬性的用法是什麼?
- 5. 覆蓋<input type =「file」>值屬性
- 6. LoginPageLink中的'Type'屬性值是什麼?
- 7. 腳本標籤中的「lang」和「type」屬性有什麼區別?
- 8. input type =「image」IE7中的填充問題
- 9. 什麼是<input type =「image」/>通常用於?
- 10. 爲什麼input type =「number」控件不支持maxlength屬性?
- 11. 如何在HTML表單中使用多個<input type =「image」>?
- 12. 如何在<input type =「text」>標籤內放置<input type =「file」>?
- 13. input type =「image」(提交按鈕)移動
- 14. 結合INPUT TYPE =「text」和選擇標籤
- 15. 什麼是標籤的默認屬性值
- 16. ()在屬性定義中代表什麼?
- 17. INPUT TYPE =在Safari
- 18. 如何在Action標籤中動態設置「input」屬性的值 - Struts-config.xml(Struts 1.2)
- 19. 爲什麼HTML5中沒有<input type =「picture」>和/或<input type =「video」>?
- 20. 取代HTML標籤屬性
- 21. input type =「image」and input type =「button」to draw in html5 canvas,the button is working,but I need the image to working
- 22. INPUT TYPE =「時間」屬性值的結合不更新具有角
- 23. 什麼是ANTLR 4中$ type屬性的替代?
- 24. JavaScript腳本標記中type屬性的意義是什麼?
- 25. JSTL標籤中'scope'屬性的默認值是什麼?
- 26. 如何在servlet中獲取<input type =「image」>
- 27. input type =「file」accept =「image/*」在電話缺口中不起作用?
- 28. 如何在WebKit中輸入INPUT TYPE =「IMAGE」不提交?
- 29. input type =「image」在使用AJAX的PHP中不起作用
- 30. 彈簧標籤中是否存在input type =「date」的模擬?
我可以使用,而不是另一種輸入類型=隱藏,從圖像類型做到這一點的任何特殊利益? – kuba 2011-04-08 08:47:47
@Kuba Werlos:好的,'hidden'是一個隱藏字段,'image'是一個按鈕,它們是兩個完全不同的東西......第一個不顯示給用戶,第二個顯示(指定的圖像是顯示),用戶必須點擊它。這取決於你想要做什麼。 – Albireo 2011-04-08 08:55:18