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

CSS Expression µÄÓÅ»¯

      IE ä¯ÀÀÆ÷ÖÐ CSS ÌØÐÔµÄ×î´óµÄÎÊÌ⣺»á·´¸´Ö´ÐУ¬Ã¿ÃëÖÓ¿ÉÄÜÖ´ÐÐÁ˳ɰÙÉÏǧ´Î£¬ÓÐÑÏÖصÄÐÔÄÜÎÊÌâ¡£
      ÈçºÎ¶Ô CSS ½øÐÐÓÅ»¯ÄØ£¿
      ÖÁÉÙ£ºÈç¹ûÎÒÃǽ« CSS ÔÚÆ¥ÅäµÄÔªËØÖнöÖ´ÐÐÒ»´Î£¬ÐÔÄܽ«»áÌáÉýºÜ´ó¡£
      old9 ÔÚ ¡¶CSS Reloaded¡·Ò»ÎÄÖÐÌṩÁËÒ»¸ö½â¾ö·½°¸£º
     ÔÚ CSS Óï¾äÌåÀ½«´¥·¢¸Ã µÄ CSS ÊôÐÔÖØÖá£
ÀýÈ磺
div {
    zoom: (function(el){el.style.zoom = "1"; alert(el.tagName);}(this));
}
²¹³ä¼¸µã£º
CSS Ö´ÐÐÔÚÈÎÒâÒ»¸öÆ¥ÅäµÄÔªËØÉÏ¡£
ÔÚ CSS ÄÚ£¬ “this”¹Ø¼ü×ÖÖ¸Ïòµ±Ç°Æ¥ÅäµÄ HTML ÔªËØ¡£
CSS ÊôÐÔÑ¡ÓÃһЩ²»³£ÓõÄÊôÐÔÀ´´¥·¢£¬´¥·¢ÍêÖØÖûØĬÈÏÖµ¡£
      ×î½üÔÚ Ajaxian µÄÎÄÕ¡¶Creating a querySelector for IE that runs at “native speed”¡· Öп´µ½×÷Õß Dion Almaer Ò²ÌṩÁËÒ»¸öÀàËƵĽâ¾ö·½Ê½£º
div {
    -singlex: (this.singlex ? 0 : (function(t) { alert(t.tagName); t.singlex = 0; } )(this));
}
      µ«´Ë´úÂ벢ûÓÐÍêÈ«½â¾ö CSS ×î´óµÄÐÔÄÜÎÊÌ⣬ÒòΪÿ´Î´¥·¢»¹ÊÇҪȥִÐÐ ½Å±¾¡£ÉõÖÁÄã¿ÉÒÔ¹ö¶¯ÏÂÄãÊó±êµÄÖмä¹öÂÖ£¬ÒâÏò²»µ½µÄÎÊÌ⽫»á·¢Éú¡£      ×îºóÇ¿µ÷£º½öÊÇ¶Ô CSS ×öÁËÓÅ»¯£¬µ«²¢Î´Ëµ CSS ¾Í²»´æÔÚÆäËû·½ÃæµÄÎÊÌâ¡£ ±¾ÎÄÀ´Ô´£ºhttp://www.planabc.net/2009/09/21/optimization_of_css_e/


Ïà¹ØÎĵµ£º

ä¯ÀÀÆ÷רÊôCSS¿ª·¢

ת·¢Ï£¬Í¬ÊÂ×ܽáµÄ¡£
ä¯ÀÀÆ÷´óÕ½µÄ½á¹ûÔø¾­Ò»¶ÈÊÇIEһͳÌìÏ£¬ÔÚÄǸöʱ´ú£¬ÎÒÃǸù±¾²»Óõ£ÐÄä¯ÀÀÆ÷¼æÈÝÐÔÎÊÌ⣬ÓÃPS×Ô¶¯Éú³É´úÂ붼ÐС£È»¶ø°éËæʱ´ú·¢Õ¹£¬ÈËÃǶÔWEBÓ¦ÓõÄÆÚÍûÔ½À´Ô½¸ß£¬ÓÚÊǺõ£¬½­ºþ·éÑÌÔÙÆ𣬸÷ÖÖä¯ÀÀÆ÷ÈçÓêºó´ºËñ£¬Õâ¿É¿àÁËÎÒÃÇÕâЩ¿ª·¢Õߣ¬ÎªÁËÈø÷ä¯ÀÀÆ÷±íÏÖÒ»Ö£¬²»ÖªµÀÓжàÉÙÇ°±²ºÄ·ÑÁ˶àÉÙÐÄѪ£¬Ï ......

JSºÍCSSÊôÐÔ¶ÔÕÕ±í


ºÐ×Ó±êÇ©ºÍÊôÐÔ¶ÔÕÕ
CSSÓï·¨£¨²»Çø·Ö´óСд£©
JavaScriptÓï·¨£¨Çø·Ö´óСд£©
border
border
border-bottom
borderBottom
border-bottom-color
borderBottomColor
border-bottom-style
borderBottomStyle
border-bottom-width
borderBottomWidth
border-color
borderColor
border-left
borderLeft
border ......

cssÀý×Ó

/*
*´´½¨ÈË£ºÝþÒËÖÒ
*ÓÃ;£ºÑ§Ï°css£¬Ó¦ÓÃÓÚÐÂÎÅϵͳ
*/
*
{
    /*°ÑĬÈÏÖµÉèÖÃΪ0*/
    margin: 0;
    padding: 0;
    border-width: 0;
}
body
{
    font-size: 14px;
}
a:link£¬a:visited
{
    /*Êó ......

CSDNÖÐ×Ô¶¨ÒåcssµÄʹÓÃ

¿ÉÒÔÔÚ²©¿ÍµÄÅäÖÃÒ³ÃæµÄ×Ô¶¨ÒåcssÀ¸ÖÐÌîÈëcssÑùʽ´úÂëÀ´×Ô¶¨Ò²blogµÄ·ç¸ñ
csdn blogµÄÒ³Ãæ¼Ü¹¹»ù±¾ÊÇÓÉdivʵÏֵģ¬Õû¸öÒ³ÃæÖ÷ÒªÓÉÈý¸ödiv×é³É£¬ËüÃǵÄid·Ö±ðÊÇ:
csdnblog_header, csdnblog_sidebar, csdnblog_content¡£
ËùÒÔ£¬¶¨ÒåËüÃǵÄÖ÷ÌåÑùʽ¿ÉÒÔÕâÑù:
#csdnblog_header
{
    //Í·²¿µÄ·ç¸ñ
}
# ......

¡¾×ܽ᡿¸ßЧÕû½àCSS´úÂëÔ­Ôò


¡¡¡¡CSSѧÆðÀ´²¢²»ÄÑ£¬µ«ÔÚ´óÐÍÏîÄ¿ÖУ¬¾Í±äµÃÄÑÒÔ¹ÜÀí£¬ÌرðÊDz»Í¬µÄÈËÔÚCSSÊéд·ç¸ñÉÏÉÔÓв»Í¬£¬ÍŶÓÉϾ͸ü¼ÓÄÑÒÔ¹µÍ¨£¬Îª´Ë×ܽáÁËһЩÈçºÎʵÏÖ¸ßЧÕû½àµÄCSS´úÂëÔ­Ôò£º
1. ʹÓÃResetµ«²¢·ÇÈ«¾ÖReset
¡¡¡¡²»Í¬ä¯ÀÀÆ÷ÔªËصÄĬÈÏÊôÐÔÓÐËù²»Í¬£¬Ê¹ÓÃReset¿ÉÖØÖÃä¯ÀÀÆ÷ÔªËصÄһЩĬÈÏÊôÐÔ£¬ÒÔ´ïµ½ä¯ÀÀÆ÷µÄ¼æÈÝ¡£µ«ÐèÒª×¢Ò ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ