HTML DOM Input Image ¶ÔÏó

Input Image ¶ÔÏó

Input Image ¶ÔÏóÊÇ HTML5 ÖеÄжÔÏó¡£

Input Image ¶ÔÏó±íʾ HTML <image> ÔªËØ¡£

·ÃÎÊ Input Image ¶ÔÏó

Äú¿ÉÒÔͨ¹ýʹÓà getElementById() À´·ÃÎÊ <image> ÔªËØ£º

var x = document.getElementById("myImage");

Ìáʾ£ºÄúÒ²¿ÉÒÔͨ¹ý±éÀú±íµ¥µÄ elements ¼¯ºÏÀ´·ÃÎÊ Input Image ¶ÔÏó¡£

´´½¨ Input Image ¶ÔÏó

Äú¿ÉÒÔͨ¹ýʹÓà document.createElement() ·½·¨À´´´½¨ <image> ÔªËØ£º

var x = document.createElement("INPUT");
x.setAttribute("type", "image");

Input Image ¶ÔÏóÊôÐÔ

ÊôÐÔ ÃèÊö
autocomplete ÉèÖûò·µ»Ø email ×Ö¶ÎµÄ autocomplete ÊôÐÔÖµ¡£
alt ÉèÖûò·µ»Ø input image µÄ alt ÊôÐÔÖµ¡£
autofocus ÉèÖûò·µ»Ø input image ÔÚÒ³Ãæ¼ÓÔØºóÊÇ·ñÓ¦×Ô¶¯»ñÈ¡½¹µã¡£
defaultValue ÉèÖûò·µ»Ø input image µÄĬÈÏÖµ¡£
disabled ÉèÖûò·µ»Ø input image ÊÇ·ñ±»½ûÓá£
form ·µ»Ø¶Ô°üº¬ input image µÄ±íµ¥µÄÒýÓá£
formAction ÉèÖûò·µ»Ø input image µÄ formaction ÊôÐÔÖµ¡£
formEnctype ÉèÖûò·µ»Ø input image µÄ formenctype ÊôÐÔÖµ¡£
formMethod ÉèÖûò·µ»Ø input image µÄ formmethod ÊôÐÔÖµ¡£
formNoValidate ÉèÖûò·µ»ØÔÚÌá½»±íµ¥Ê±ÊÇ·ñÓ¦¸ÃÑéÖ¤±íµ¥Êý¾Ý£¨form-data£©¡£
formTarget ÉèÖûò·µ»Ø input image µÄ formtarget ÊôÐÔÖµ¡£
height ÉèÖûò·µ»Ø input image µÄ height ÊôÐÔÖµ¡£
name ÉèÖûò·µ»Ø input image µÄ name ÊôÐÔÖµ¡£
src ÉèÖûò·µ»Ø input image µÄ src ÊôÐÔÖµ¡£
type ·µ»Ø input image ×Ö¶ÎµÄ±íµ¥ÔªËØÀàÐÍ¡£
value ÉèÖûò·µ»Ø input image µÄ value ÊôÐÔÖµ¡£
width ÉèÖûò·µ»Ø input image µÄ width ÊôÐÔÖµ¡£

±ê×¼ÊôÐÔºÍʼþ

Input Image ¶ÔÏóÖ§³Ö±ê×¼ÊôÐÔºÍʼþ¡£

Ïà¹ØÒ³Ãæ

HTML ½Ì³Ì£ºHTML ±íµ¥

HTML ²Î¿¼Êֲ᣺HTML <input> ±êÇ©

HTML ²Î¿¼Êֲ᣺HTML <input> type ÊôÐÔ

VUE