Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

HTML ±êÇ©

<label> ±êǩΪ input ÔªËض¨Òå±ê×¢£¨±ê¼Ç£©¡£
label ÔªËز»»áÏòÓû§³ÊÏÖÈκÎÌØÊâЧ¹û¡£²»¹ý£¬ËüΪÊó±êÓû§¸Ä½øÁË¿ÉÓÃÐÔ¡£Èç¹ûÄúÔÚ label ÔªËØÄÚµã»÷Îı¾£¬¾Í»á´¥·¢´Ë¿Ø¼þ¡£¾ÍÊÇ˵£¬µ±Óû§Ñ¡Ôñ¸Ã±êǩʱ£¬ä¯ÀÀÆ÷¾Í»á×Ô¶¯½«½¹µãתµ½ºÍ±êÇ©Ïà¹ØµÄ±íµ¥¿Ø¼þÉÏ¡£
<label> ±êÇ©µÄ for ÊôÐÔÓ¦µ±ÓëÏà¹ØÔªËØµÄ id ÊôÐÔÏàͬ¡£
Label ÖÐÓÐÁ½¸öÊôÐÔÊǷdz£ÓÐÓõÄ,Ò»¸öÊÇFOR¡¢ÁíÍâÒ»¸ö¾ÍÊÇACCESSKEYÁË¡£
FORÊôÐÔ
¹¦ÄÜ£º±íʾLabel±êÇ©Òª°ó¶¨µÄHTMLÔªËØ£¬Äãµã»÷Õâ¸ö±êÇ©µÄʱºò£¬Ëù°ó¶¨µÄÔªËؽ«»ñÈ¡½¹µã¡£
Ó÷¨£º<Label FOR="InputBox">ÐÕÃû</Label><input ID="InputBox" type="text">
ACCESSKEYÊôÐÔ£º
¹¦ÄÜ£º±íʾ·ÃÎÊLabel±êÇ©Ëù°ó¶¨µÄÔªËصÄÈȼü£¬µ±Äú°´ÏÂÈȼü£¬Ëù°ó¶¨µÄÔªËؽ«»ñÈ¡½¹µã¡£
Ó÷¨£º<Label FOR="InputBox" ACCESSKEY£½"N">ÐÕÃû</Label><input ID="InputBox" type="text">
¾ÖÏÞÐÔ£ºaccessKeyÊôÐÔËùÉèÖõĿì½Ý¼ü²»ÄÜÓëä¯ÀÀÆ÷µÄ¿ì½Ý¼ü³åÍ»£¬·ñÔò½«ÓÅÏȼ¤»îä¯ÀÀÆ÷µÄ¿ì½Ý¼ü¡£
×¢ÊÍ
Òª½« LABEL °ó¶¨µ½ÆäËüµÄ¿Ø¼þ£¬Ç뽫 LABEL ÔªËØµÄ FOR ÊôÐÔÉèÖÃΪÓë¸Ã¿Ø¼þµÄ ID Ïàͬ¡£½« LABEL °ó¶¨µ½¿Ø¼þµÄ NAME ÊôÐÔºÁÎÞÓô¦¡£µ«ÊÇ£¬ÒªÌá½»±íµ¥£¬Äã±ØÐëΪ LABEL ÔªËØËù°ó¶¨µ½µÄ¿Ø¼þÖ¸¶¨NAME¡£
ÓÐÁ½ÖÖ·½·¨¸øËùÖ¸¶¨µÄ¿ì½Ý¼üÌí¼ÓÏ»®Ïß¡£LABEL ÔªËØµÄ rich text Ö§³Ö¿ÉÒÔÔÚ ACCESSKEY ÊôÐÔËùÖ¸¶¨µÄ¿ì½Ý¼ü×Ö·ûÁ½²à¼ÓÉÏ U ÔªËØ¡£Èç¹ûÄã¸üÔ¸ÒâʹÓÃÑùʽ±í(CSS)À´Ó¦ÓÃÑùʽ£¬¿ÉÒÔ½«¸Ã×Ö·û°üº¬ÔÚ SPAN ÖУ¬²¢ÉèÖÃÑùʽΪ“text-decoration: underline”¡£
Èç¹ûÓû§µ¥»÷ LABEL£¬Ôò»áÏÈ´¥·¢ LABEL É쵀 onclick ʼþ£¬È»ºó´¥·¢ÓÉ htmlFor ÊôÐÔËùÖ¸¶¨µÄ¿Ø¼þÉ쵀 onclick ʼþ¡£°´Ï LABEL É趨µÄ¿ì½Ý¼ü½«ÉèÖý¹µãµ«²¢²»´¥·¢ onclick ʼþ¡£
ÐèҪעÒâµÄµØ·½£º
1¡¢±êÇ©²»ÔÊÐíǶÌס£
2¡¢´ËÔªËØÔÚInternet Explorer 4.0 ¼°ÒÔÉÏ°æ±¾µÄ HTML ºÍ½Å±¾ÖпÉÓá£
3¡¢´ËÔªËØÊÇÄÚǶԪËØ¡£
4¡¢´ËÔªËØÐèÒª¹Ø±Õ±êÇ©¡£
ÔªËØʾÀý´úÂë
ÏÂÃæµÄÀý×ÓʹÓÃÁË LABEL ÔªËØºÍ ACCESSKEY ÊôÐÔÉèÖÃÎı¾¿òµÄ½¹µã¡£
<LABEL FOR="oCtrlID" ACCESSKEY="1">
<SPAN style="text-decoration:underline;">Ãû×Ö</SPAN>: <font color="#999999">°´ALT+1µ½Îı¾¿ò</font>
</LABEL>
<INPUT TYPE="text" NAME="TXT1" VALUE="°¢»áéª" SIZE="20" TABINDEX="1" ID="oCtrlID">


Ïà¹ØÎĵµ£º

C#.netÖÐÓÃWinForm½ÓÊÕhtmlÒ³ÃæÏûÏ¢µÄ³ÌÐò

Ê×ÏÈдһ¸öÒ³Ã棬ÉÏÃæÒª·ÅÒ»¸öButton
<html>
 <head>
  <title></title>
 </head>
 <body>
        <input id="Button1" type="button" value="button" />
 
 </body>
</html>
½«Æä±£´ ......

htmlÎı¾¿ò¿Ø¼þµÄ³£ÓÃÊôÐÔ¡¢Ê¼þºÍ·½·¨


´°¿Úʼþ (Window Events)
½öÔÚ body ºÍ frameset ÔªËØÖÐÓÐЧ¡£
ÊôÐÔ Öµ ÃèÊö
onload ½Å±¾ µ±ÎĵµÔØÈëʱִÐнű¾
onunload ½Å±¾ µ±ÎĵµÐ¶ÔØʱִÐнű¾
±íµ¥ÔªËØʼþ (Form Element Events)
½öÔÚ±íµ¥ÔªËØÖÐÓÐЧ¡£
ÊôÐÔ Öµ ÃèÊö
onpropertychange   ½Å±¾ µ±Îı¾ÄÚÈݸıäʱִÐнű¾
onchange ½Å± ......

html fileÉÏ´«

ǰ̨  <form id="form1" runat="server" enctype="multipart/form-data">
       <input type="flie" id="xxx"> 
        </form>
ºǫ́ͨ¹ý HttpPostedFile f = Request.Files["xxx"]
½ÓÊվͿÉÒÔÁË ......

Zen Coding: Ò»ÖÖ¿ìËÙ±àдHTML/CSS´úÂëµÄ·½·¨


Zen Coding: Ò»ÖÖ¿ìËÙ±àдHTML/CSS´úÂëµÄ·½·¨
À´Ô´£ºhttp://www.javaeye.com/news/13149
Òë×Ô£ºSmashing Magazine
ÖÐÎÄ£ºZen Coding: Ò»ÖÖ¿ìËÙ±àдHTML/CSS´úÂëµÄ·½·¨
ÔÚ±¾ÎÄÖÐÎÒÃǽ«Õ¹Ê¾Ò»ÖÖеÄʹÓ÷ÂCSSÑ¡ÔñÆ÷µÄÓï·¨À´¿ìËÙ¿ª·¢HTMLºÍCSSµÄ·½·¨¡£ËüÓÉSergey Chikuyonok¿ª·¢¡£
ÄãÔÚдHTML´úÂë(°üÀ¨ËùÓбêÇ©¡¢ÊôÐÔ¡¢ ......

ÐÞ¸´HTMLͼ±ê¹ØÁª

HTMLºÍHTMÎļþÔÚÒ»´Îɱ¶¾ºó¶¼±ä³ÉÁË¿ÉÖ´ÐÐÎļþͼ±êµÄÑùʽ¡£ÔÚÍøÉÏËÑË÷ÁËÈô¸É·½·¨¶¼²»µÃÆä½â¡£×îºó²éÁËÒ»ÏÂ×ÊÁÏ£¬Ô­À´ÊÇ×¢²á±íÖÐÓиö¿ÉÓпÉÎ޵ļüÖµµÄ´æÔÚÔì³ÉµÄ£¬Õâ¸ö¾ÍÊÇ£º
HKEY_CLASSES_ROOT\htmlfile\ShellEx\lconHandler
ɾ³ýlconHandlerºó£¬ËùÓÐHTMLºÍHTMÎļþ¶¼±ä³ÉÁËδ֪ÎļþµÄÑùʽ£¬»¹ÐèÒªÔÙµ½“¿ØÖÆÃæ°å&rdq ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ