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

12ÖÖJavascript½â¾ö³£¼ûä¯ÀÀÆ÷¼æÈÝÎÊÌâµÄ·½·¨


    ÎÒÃÇÌᳫ¾¡¿ÉÄÜʹÓÃCSS£¬¶øÇÒÎÒÃdz£³£ÄÜ×öµ½ÕâÒ»µã¡£ÏÖ´úä¯ÀÀÆ÷ÓкܺõÄCSSÖ§³Ö-ÕâÎÞÒÉ×ã¹»ºÃÈÃÄãʹÓÃCSSÀ´¿ØÖƲ¼¾ÖºÍ°æÃæÉè¼Æ¡£µ«ÊÇÓÐʱºò£¬Ä³Ð©ÍøÒ³ÔªËØÔÚ²»Í¬µÄä¯ÀÀÆ÷»á³öÏÖ²»Í¬¡£
    Èç¹ûÄã²»ÖªµÀÔ­Òò£¬²»Òª¹ýÓÚµ£ÐÄ£¬ÇëÑо¿CSS¹æÔò²¢²é¿´ÕâƪÎÄÕÂ:ʹÓÃCSSÀ´ÐÞÕýÒ»ÇÐ: 20 +³£¼û´íÎóºÍÐÞ¸´
¡£
Èç¹ûÕâЩҲÎÞЧ£¬Äú¿ÉÒÔͨ¹ýÏÂÃæÁгöµÄ12¸öjavascript½â¾ö·½°¸ÐÞ¸´Ëü£¬ÕâÑùÄúµÄÍøÒ³¿´ÆðÀ´¾ÍÄÜ¿çÔ½ËùÓÐä¯ÀÀÆ÷ÁË£¡
ÔÚ±¾ÎÄÖУ¬ÎÒÃÇ»á½Ò¿ªÄãÔÚ¿ª·¢webÓ¦ÓÃÊÇ¿ÉÄÜ»áÓöµ½µÄ12¸ö×î³£¼û
µÄCSSÎÊÌâ
µÄjavascript½â¾ö·½°¸¡£
1. ×Ô¶¯Æ¥Åä¸ß¶È
×Ô´ÓÎÒÃÇÅ×ÆúÁË»ùÓÚTableµÄÒ³Ãæ²¼¾Öºó£¬´´½¨Í¬µÈ¸ß¶ÈÀ¸Ä¿»òÄÚÈݺÐ×ÓµÄÊÓ¾õЧ¹ûÒÑÈ»ÊÇÒ»¸öÌôÕ½¡£
1.1
ÓÃjQueryÉèÖÃÆ¥Åä¸ß¶È
Õâ¸öjQuery²å¼þÔÚͬһ¸öÈÝÆ÷Àï“ƽºâ”ºÐ×ӵĸ߶Ȳ¢´´ÔìÒ»¸ö¼ò½éµÄÍø¸ñ——¼¸ºõ´Ó¿ÉÓÃÐÔºÍÐÔÄܵĽǶÈʹÓüòµ¥µÄJavaScriptÌæ´ú£º equalHeights()º¯Êý
²â¶¨Ò»¸öÈÝÆ÷ÀïµÄËùÓÐͬ¼¶ÔªËØͬÈÝÆ÷µÄ¸ß¶È£¬È»ºóÉèÖÃÿ¸öÔªËصÄ×îµÍ¸ß¶ÈΪ×î¸ßµÄÔªËصĸ߶ȡ£
ÈçºÎ¹¤×÷
equalHeights()ͨ¹ýÑ­»·²â¶¨Ö¸¶¨ÔªËصÄ×î¸ß¼¶±ðµÄ×ӽڵ㣬ȻºóÉèÖÃËûÃǵÄ×îС¸ß¶ÈֵΪ×î¸ßµÄÔªËصĸ߶ȡ£
µã»÷ÕâÀïÔ¤ÀÀЧ¹û
1.2
ÓÃjQueryÆ¥ÅäÀ¸Ä¿¸ß¶È
jQueryµÄÁíÒ»¸ö¿ÉÒÔʹºÐ×ӵĸ߶ÈÏàµÈµÄ²å¼þ
$(“#col1, #col2″).equalizeCols();
½«ÈçÄãËùÏëµÄÄÇÑùÆ¥Åä¸ß¶È
$(“#col1, #col2″).equalizeCols(“p,p”);
Æ¥ÅäÕâÁ½¾í£¬²¢ÔÚ#col1»ò#col2(¶ÌµÄÄǸö)ÀïµÄP±êÇ©ºóÃæÌí¼Ó¿Õ°×.
2. IE6 PNG͸Ã÷Ö§³Ö
IE6ÒÔϵİ汾²»Ö§³Öpng͸Ã÷¡£Ê¹ÓÃhack£¬IE 5.5ºÍ6Ò²ÒѾ­¿ÉÒÔÖ§³Ö£¬µ«hack²¢²»ÀíÏëµÄÇÒÄÑÒÔʹÓá£ÈÃÎÒÃÇÀ´¿´¿´ÎÒÃÇÄÜ×öЩʲôÀ´Ö§³ÖIE6Óû§ £¬Í¬Ê±ÎªÍøÕ¾µÄ´ó¶àÊý·Ã¿Í´øÀ´×î¼ÑµÄ͸Ã÷Ч¹û¡£
2.1
Ç¿ÖÆIE6Ö§³Ö͸Ã÷
IE7µÄÊÇÒ»¸öDean Edwards½¨Á¢µÄJavaScript¿â£¬ÒÔÇ¿ÆÈMSIE(IE6,IE5)±íÏÖµÄÏñÒ»¸ö¼æÈݱê×¼µÄä¯ÀÀÆ÷¡£ËüÐÞ¸´Ðí¶àCSSÎÊÌⲢʹ͸Ã÷PNGÔÚIE6ºÍIE5ÏÂÕý³£¹¤×÷£¬Ëü»¹ÔÊÐí¸ß¼¶µÄCSSÑ¡ÔñÆ÷¡£
µã»÷²é¿´Ô¤ÀÀЧ¹û


µã»÷ÏÂÔØÔ´Îļþ
2.2.
¸ÄÁ¼iFixPng
ÐÞÕýIE6¼°ÒÔϵÄPNGͼƬµÄÎÊÌ⣬IMG±êÇ©ºÍCSS±³¾°Í¼Æ¬¶¼¿ÉÒÔ¡£Õâ¸ö²å¼þÊǶÔԭʼiFixPng²å¼þ
µÄÒ»ÖָĽø¡£Ìصã°üÀ¨£ºÍ¼Ïñ»òÓб³¾°Í¼Æ¬µÄ±êÇ©£¬ÏÖÔÚÖ§³Öbackground-position£¬ÆäÖаüÀ¨IEä¯ÀÀÆ÷µÄ¾ø¶Ô¶¨Î»µÄÐÞÕý¡£(bottom: -1px || bottom: 0px)
µã»÷²é¿´Ô¤ÀÀЧ¹û


Ïà¹ØÎĵµ£º

javascriptµÄdocument¶ÔÏóÏê½â(ת)

document Îĵ²¶ÔÏó - JavaScript½Å±¾ÓïÑÔÃèÊö
---------------------------------------------------------------------
×¢:Ò³ÃæÉÏÔªËØnameÊôÐÔºÍJavaScriptÒýÓõÄÃû³Æ±ØÐëÒ»Ö°üÀ¨´óСд
   ·ñÔò»áÌáʾÄãÒ»¸ö´íÎóÐÅÏ¢ "ÒýÓõÄÔªËØΪ¿Õ»òÕß²»ÊǶÔÏó"
------------------------------------------------------ ......

javascriptÖеıհüÑ­»·±äÁ¿Ö»ÄÜÈ¡×îºóÒ»¸öÖµÎÊÌâ

ÍøÉÏÃæ˵javascript±Õ°üÓÐÁ½µãÐèҪעÒ⣺
1. ±Õ°üÖеĻ·¾³±äÁ¿Èç¹ûÊÇÔÚÑ­»·ÖУ¬ÄÇôʹÓñհü±äÁ¿µÄʱºòÊÇÑ­»·½áÊøºóµÄÖµ
2. ±Õ°ü»·¾³±äÁ¿¿ÉÒÔ¶¨ÒåÔÚ·½·¨ºó£¬²»Ó°ÏìʹÓÃ
µÚ1µãÊÇ˵±Õ°üÀï»·¾³±äÁ¿Èç¹ûÊÇÔÚÑ­»·ÖУ¬ÄÇÖ»ÄÜÈ¡Ñ­»·½áÊøºóµÄÖµ
Õâ¸öÎÊÌâ¿ÉÒÔÓÃevalº¯Êý¼òµ¥½â¾ö£¬ÔÚÑ­»·ÖÐÓÃevalÖ´Ðбհüº¯ÊýÓï¾ä¾ÍûÎÊÌâÀ²£¬Ð§Â ......

c# cookieµÄʹÓã¬ÒÔ¼°Óëjavascript cookieµÄ½»»¥

C#:
´´½¨£º
¡¡¡¡¡¡¡¡HttpCookie cookie = new HttpCookie("regID");
            cookie .Value = username;
            cookie .Expires = DateTime.Now.AddDays(1);
  & ......

ʹÓÃJavaScript ¶ÔCookie ²Ù×÷µÄ·â×°

ʹÓÃJavaScript ¶ÔCookie ²Ù×÷µÄ·â×°
ͨ¹ý±¾Æª,ÄúÄÜÁ˽⵽:
ÄäÃûº¯Êý
±Õ°üµÄ²úÉú
JavaScriptʵÏÖprivate ÒÔ¼° public ·ÃÎÊȨÏÞ
document.cookie µÄ²Ù×÷
    Javascript ûÓÐ private , public ·ÃÎÊȨÏÞÉèÖõĹؼü×Ö,µ«ÊÇ¿ÉÒÔͨ¹ýÒ»¶¨µÄ¼¼ÇÉÀ´Ä£Äâ³öÏàͬµÄ½á¹û.
    Ê×ÏÈÎÒÃÇÀ´¿´ÏÂÃæÒ»ÐÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ