HTMLÖÐIDÓëNameµÄÇø±ð2
¿ÉÒÔ˵¼¸ºõÿ¸ö×ö¹ýWeb¿ª·¢µÄÈ˶¼Îʹý£¬µ½µ×ÔªËصÄIDºÍNameÓÐʲôÇø±ð°¢£¿ÎªÊ²Ã´ÓÐÁËID»¹ÒªÓÐNameÄØ?!
¶øͬÑùÎÒÃÇÒ²¿ÉÒԵõ½×îclassicalµÄ´ð°¸£ºID¾ÍÏñÊÇÒ»¸öÈ˵ÄÉí·ÝÖ¤ºÅÂ룬¶øName¾ÍÏñÊÇËûµÄÃû×Ö£¬IDÏÔÈ»ÊÇΨһµÄ£¬¶øNameÊÇ¿ÉÒÔÖظ´µÄ¡£
nameÔÀ´ÊÇΪÁ˱êʶ֮Ó㬵«ÊÇÏÖÔÚ¸ù¾Ý¹æ·¶£¬¶¼½¨ÒéÓÃidÀ´±êʶԪËØ¡£
ÒÔÏÂÖ»ÄÜÓÃname£º
1. ±íµ¥£¨form£©µÄ¿Ø¼þÃû£¬Ìá½»µÄÊý¾Ý¶¼ÓÿؼþµÄname¶ø²»ÊÇidÀ´¿ØÖÆ¡£ÒòΪÓÐÐí¶àname»áͬʱ¶ÔÓ¦¶à¸ö¿Ø¼þ£¬±ÈÈç
checkboxºÍradio£¬¶øid±ØÐëÊÇÈ«ÎĵµÖÐΨһµÄ¡£´ËÍâä¯ÀÀÆ÷»á¸ù¾ÝnameÀ´É趨·¢Ë͵½·þÎñÆ÷µÄrequest¡£Òò´ËÈç¹ûÓÃid£¬·þÎñÆ÷ÊÇÎÞ
·¨µÃµ½Êý¾ÝµÄ¡£
2. frameºÍwindowµÄÃû×Ö£¬ÓÃÓÚÔÚÆäËûframe»òwindowÖ¸¶¨target¡£
ÒÔÏÂÖ»ÄÜÓÃid£º
1. labelÓëform¿Ø¼þµÄ¹ØÁª£¬
<label for="MyInput">My Input</label>
<input id="MyInput" type="text">
forÊôÐÔÖ¸¶¨Óëlabel¹ØÁªµÄÔªËصÄid£¬²»¿ÉÓÃnameÌæ´ú¡£
2. CSSµÄÔªËØÑ¡Ôñ»úÖÆ£¬ÒÔ#MyIdµÄ·½Ê½Ö¸¶¨Ó¦ÓÃÑùʽµÄÔªËØ£¬²»ÄÜÓÃnameÌæ´ú¡£
3. ½Å±¾ÖлñµÃ¶ÔÏó£º
IEÖ§³ÖÔڽű¾ÖÐÖ±½ÓÒÔid£¨¶ø²»ÊÇname£©ÒýÓøÃid±êʶµÄ¶ÔÏó¡£ÀýÈçÉÏÃæµÄinput£¬ÒªÔڽű¾ÖлñµÃÊäÈëµÄÄÚÈÝ£¬¿ÉÒÔÖ±½ÓÒÔ
MyInput.valueÀ´»ñµÃ¡£
Èç¹ûÓÃDOMµÄ»°£¬ÔòÓÃdocument.getElementById("MyInput").value£¬Èç¹ûÒªÓÃnameµÄ»°£¬Í¨³£Ïȵõ½°üº¬¿Ø¼þµÄform£¬ÀýÈç
document.forms[0]£¬È»ºó´ÓformÔÙÒýÓÃname£¬×¢ÒâÕâÑùµÃµ½µÄÊǾ¹ý¼ÆËãºó½«·¢Ë͸ø·þÎñÆ÷µÄÖµ¡£
nameÓëidµÄÆäËûÇø±ðÊÇ£º
idÒª·ûºÏ±êʶµÄÒªÇ󣬱ÈÈç´óСдÃô¸Ð£¬×îºÃ²»Òª°üº¬Ï»®Ïߣ¨ÒòΪ²»¼æÈÝCSS£©¡£¶øname»ù±¾ÉÏûÓÐʲôҪÇó£¬ÉõÖÁ¿ÉÒÔÓÃÊý×Ö
¡£
ÓÃCSS¿ØÖÆÕâ¸öÁ´½ÓµÄÍ£ÁôÑùʽ£¬
¿ÉÒÔÕâÑùд #m_blog div.opt a:hover{color:#D57813} »ò #myLink:hover{color:#D57813}
NAMEÖ÷ÒªÓ¦ÓÃÔÚ½»»¥Ê½ÍøÒ³£¬±íµ¥Ìá½»¸øij¸ö·þÎñÆ÷¶Ë½Å±¾ºó½ÓÊձ䴦ÀíÁ¿Ê¹ÓᣴÓÔ´´úÂëµÄ¹æ·¶ÐԺͼæÈÝÐԽǶȳö·¢£¬ÈçÔÚ¿Í»§¶Ë
½Å±¾ÀïÒªË÷Òýij¸ö¶ÔÏ󣬽¨ÒéÓÃdocument.getElementById()·½·¨£¬¾¡Á¿²»ÒªÖ±½ÓʹÓÃNAMEµÄÖµ
Ïà¹ØÎĵµ£º
url£ºhttp://www.w3cschool.cn/tag_tbody.asp.htm
<tbody> ±êÇ©±í¸ñÖ÷Ì壨ÕýÎÄ£©¡£¸Ã±êÇ©ÓÃÓÚ×éºÏ HTML ±í¸ñµÄÖ÷ÌåÄÚÈÝ¡£
tbody ÔªËØÓ¦¸ÃÓë thead ºÍ tfoot ÔªËؽáºÏÆðÀ´Ê¹Óá£
thead ÔªËØÓÃÓÚ¶Ô HTML ±í¸ñÖеıíÍ·ÄÚÈݽøÐзÖ×飬¶ø tfoot ÔªËØÓÃÓÚ¶Ô HTML ±í¸ñÖеıí×¢£¨Ò³½Å£©ÄÚÈݽøÐзÖ×é¡£
thead¡¢tf ......
string str = a.ToString();
str = Regex.Replace(str, @"</?span[^>]*>", "", RegexOptions.IgnoreCase);
str = Regex.Replace(str, @"&#[^>]*;", "", RegexOptions.IgnoreCase);
str = Regex.Replace(str, @"</?marquee[^>]*>", "", RegexOptions.IgnoreCase);
str = Regex.Replace(str, ......
1.»ñÈ¡URL
»ñÈ¡urlµÄ·½·¨£¬Ö±½ÓÓÃlocation¾Í¿ÉÒÔÁË£¬window.location»òwindow.loation.hrefÒ²¿ÉÒÔ¡£
2.·ÖÎöURL
ÔËÓÃlocation»ñÈ¡µÄurlµÄÊôÐÔΪobject£¬Òª¶ÔÆä½øÐÐ×Ö·û´®µÄ·ÖÎö²Ù×÷£¬ÐèÒªÏȽ«Æäת»»Îª×Ö·û´®¡£
ÓÃlocationÀ´½øÐд¦Àí£¬Ê×ÏȽ«Æäת»»Îª×Ö·û´®£¬Óú¯ÊýtoString()£¬URL.toString();
¸½Ò»Ð©URL²ÎÊý
ÍêÕûµÄU ......
Óõ½µÄMX±êÇ©£ºconstraintColumns¡¢ConstraintColumn¡¢constraintRows¡¢ConstraintRow
¸ø´ó¼Ò˵˵ǰÌáÇé¿ö£ºÔÚ×öMXML²¼¾Öʱ£¬ÒªÇ¶Ì׺ܶà²ã¼¶£¬ÕâÀïÃæÓкܶàÎÊÌ⣺
1¡¢Ç¶Ì×Ì«¶à²ã¼¶»áÓ°ÏìЧÂÊ£¡
2¡¢Ç¶Ì×Ì«¶à²ã¼¶£¬´úÂëµÄ¿É¶ÁÐÔ¡¢¿Éά»¤ÐԲ
3¡¢Ç¶Ì×Ì«¶à²ã¼¶ÊÇÒòΪCanvas¡¢Vbox¡¢Hbox¹¦Äܵ¥Ò»£¬²»ÄÜÂú×ãÐèÒª£¬¶ø²»ÊDZØÐ ......
WEB·þÎñÆ÷¿Ø¼þÊÇHTML¿Ø¼þµÄÒ»ÖÖÀ©Õ¹,Çø±ðÊÇ:
1)Ç°Õß¿ÉÒÔ´¥·¢·þÎñÆ÷¿Ø¼þÌØÓеÄʼþ£¬ºóÕßÖ»ÄÜͨ¹ý»ØµÝµÄ·½Ê½´¥·¢·þÎñÆ÷ÉϵÄÒ³Ã漶ʼþ¡£
2)ÊäÈ뵽ǰÕßÖеÄÊý¾ÝÔÚÇëÇóÖ®¼ä¿ÉÒÔά»¤£¨¼´¾ßÓÐ״̬¹ÜÀí¹¦ÄÜ£©,¶øºóÕßÎÞ·¨×Ô¶¯Î¬»¤Êý¾Ý£¬Ö»ÄÜʹÓÃÒ³Ã漶µÄ½Å±¾À´±£´æºÍ»Ö¸´¡£
3)Ç°Õß¿ÉÒÔ×Ô¶¯¼ì²âä¯ÀÀÆ÷²¢µ÷Õûµ½Ç¡µ±µÄÏÔʾ£¬¶øº ......