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

IE6²»½âÎöijЩCSS´úÂëµÄ½â¾ö·½·¨

ÍøÒ³²ÉÓÃÁË UTF-8 ±àÂë¸ñʽ£¬Õâ±¾À´Ã»ÓÐÎÊÌ⣬ÎÊÌâÊÇÍⲿ CSS ÎļþĬÈÏÊÇ ANSI ±àÂ룬²¢Ã»Óб£´æΪ UTF-8 ¸ñʽ¡£¿ÉÄÜÄã»á·¢ÏÖÔÚÒ»°ãÇé¿öÏÂÕâÑùÒ²ÊÇûÓÐÎÊÌâµÄ£¬È»¶øµ± CSS ÎļþÖаüº¬ÓÐÖÐÎÄ×¢ÊÍʱ¾Í¿ÉÄܲ»¾¡ÈçÈËÒâÁË£¡
¡¡¡¡¹À¼ÆÊÇ IE6 °æ±¾ÒÔϵÄä¯ÀÀÆ÷ÔÚ½âÎöÕâ¸ö CSS ÎļþʱÒòΪ±àÂëÎÊÌâ¶øÎÞ·¨ÕýÈ·½âÎö£¬ËùÒԲŻᷢÉú CSS ÔÚ IE6 ϲ»Æð×÷ÓõÄÇé¿ö¡£¿´À´Î¢ÈíÒÑ×¢Òâµ½Õâ¸öÎÊÌ⣬ÔÚ IE7 ÖаÑËüÐÞ¸´ÁË¡£µ«ÊÇÓÃIE6 µÄÈË»¹ÊDz»ÉÙ¡£Òò´ËÕâ¸öÎÊÌâÐèÒª½â¾ö£º
¡¡¡¡·½·¨Ò»£º°Ñ CSS¡¢JS ºÍÍøÒ³Îļþ¶¼Í³Ò»±£´æΪ UTF-8 ¸ñʽ¡£
¡¡¡¡·½·¨¶þ£ºÈ¥µô CSS¡¢JS ÖеÄÖÐÎÄ×¢ÊÍ£¬»òÕ߸ÄΪӢÎÄ¡£
¡¡¡¡ÉÏÎÄΪIE6ÒòΪ±àÂëÎÊÌâÎÞ·¨ÕýÈ·½âÎöCSSÎļþ
¡¡¡¡ÓÐʱºòÎÒÃÇ·¢ÏÖÎÒÃÇдµÄhtmlÒ³ÃæÒýÓÃÍⲿcssÎļþµÄʱºòÔÚIE7ºÍFFÖÐÄܹ»ºÜºÃµÄ±»½âÎö£¬¼´ÄÜÕý³£ÏÔʾ£¬¿ÉÔÚIE6ÖÐÈ´ÍêȫûÓб»½âÎö£¬¼´ cssÎļþÀïµÄÑùʽ¸ù±¾Ã»Ó¦Óõ½ÎÒÃǵÄhtmlÒ³Ã棬ÕâÊÇÔõô»ØÊ£¿¿ªÊ¼ÎÒ°ÑcssÎļþÀïÍ·µÄËùÓÐÑùʽ¶¼¸´ÖÆÕ³Ìùµ½htmlÒ³ÃæÖеÄ<style></style>ÖУ¬ÕâÑù×öÒÔºó£¬IE6¡¢IE7¡¢FF¶¼ÄÜÕý³£ÏÔʾÁË£¬ÕâÒ²¾Í˵Ã÷ÍⲿµÄcssÎļþÓ¦¸ÃÊÇ´æÔÚʲôÎÊÌâÁË£¬ÎªÊ²Ã´ÔÚIE6ÖгöÏÖÕâÎÊÌ⣬¶øÔÚIE7ºÍFFÖÐȴûÓУ¿ÍøÉÏgoogleÁËÏ£¬·¢ÏÖÊÇIE6ÖжÔÒ³ÃæµÄ±àÂëÓÐÑϸñµÄÒªÇó£¬ÎҲ鿴ÁËÏ£¬ÅóÓÑ·¢¹ýÀ´µÄcssÎļþÓõıàÂëÊÇGB2312µÄ£¬¶øhtmlÎļþÓõÄÊÇutf-8µÄ£¬Ô­À´ÎÊÌâ¾Í³öÔÚÕâÀïÁË£¬ÎÒ°ÑcssÎļþÄÚÈݵıàÂëÓÃed¸Ä³Éutf- 8£¬ÔٴβâÊÔµÄʱºò£¬Ò»Çлָ´Õý³£ÁË£¬»¹ÓоÍÊÇÎÒ·¢ÏÖÅóÓѵÄcssÎļþÀïÃæÓÃÖÐÎÄ×¢ÊÍ£¬ÑÏÖؽ¨ÒéÅóÓÑÃDz»ÒªÔÚcssÎļþÀïÃæÓÃÖÐÎÄÀ´×¢ÊÍ£¬ÕâÑùÒ²»áÒýÆð±àÂëµÄÎÊÌâ¡£


Ïà¹ØÎĵµ£º

IEºÍFirefoxÔÚJSºÍCSS·½ÃæµÄ¼æÈÝÐÔ

1.document.formName.item("itemName") ÎÊÌâ
˵Ã÷:IEÏÂ,¿ÉÒÔʹÓÃdocument.formName.item("itemName")»òdocument.formName.elements["elementName"];
FirefoxÏÂ,Ö»ÄÜʹÓÃdocument.formName.elements["elementName"].
½â¾ö·½·¨:ͳһʹÓÃdocument.formName.elements["elementName"].
2.¼¯ºÏÀà¶ÔÏóÎÊÌâ
˵Ã÷:
IEÏÂ,¿ÉÒÔ ......

JavaScript¶¯Ì¬¼ÓÔØCSSµÄÈýÖÖ·½·¨

  JavaScript¶¯Ì¬¼ÓÔØCSSµÄÈýÖÖ·½·¨ ÊÕ²Ø
Èç¹ûÄãÓкܶà¹ØÁªµÄCSSÎļþÒªÒ»Æð¼ÓÔØ£¬»òÕßÏ붯̬µÄ¼ÓÔز»Í¬µÄCSSÎļþ£¬ÄÇôÏÂÃæµÄ·½·¨ÄãÒ»¶¨¶ÔÄãÓаïÖú¡£
µÚÒ»ÖÖ£ºÒ»°ãÓÃÔÚÍⲿCSSÎļþÖмÓÔرØÐëµÄÎļþ
 ³ÌÐò´úÂë
@import url(style.css);
/*Ö»ÄÜÓÃÔÚCSSÎļþÖлòÕßstyle±êÇ©ÖÐ*/
µÚ¶þÖÖ£º¼òµ¥µÄÔÚÒ³ÃæÖмÓÔØÒ» ......

DIV+CSSÉñ»°

×÷Ϊһ¸öÉí´¦ 2009ÄêµÄ Web Éè¼Æʦ£¬ÄãÊÇ·ñºÃÒâ˼³ÐÈÏ×Ô¼ºµÄ´úÂëÖÐʹÓÃÁË Table£¬Èç¹ûÊÇ£¬ÄãÊÇÒ»¸öÓÐÓÂÆøµÄÈË£¬
Web Éè¼ÆÊǸöÆæ¹ÖµÄÐÐÒµ£¬Äã¿ÉÒÔ½«×Ô¼ºµÄÍøÕ¾Éè¼ÆµÃÏñÍí±¨µÄ·ÖÀà¹ã¸æ£¬»òÕßÂ¥µÀÀïµÄ¿ªËø¹ã¸æ£¬µ«Ç§Íò±ðÈÃÈËÖªµÀ
ÄãʹÓÃÁË Table£¬ÔÚÄãµÄÔ´´úÂëÖз¢ÏÖ Table ¾ÍÏñÒ»¸öÏúÊÛ±»ÈËÏÆÆð¿ã½Å·¢ÏÖ´©ÁË°×Íà×ÓÒ»Ñù¡£
T ......

CSSµÄÊ®°Ë°ã¼¼ÇÉ

×î½ü,¾­³£ÓÐÅóÓÑÎÊÎÒһЩ¹¤×÷ÖÐÓöµ½µÄCSSÎÊÌâ¡£ËûÃÇ×ÜÊDz»ÄܺܺõĿØÖÆCSS£¬Ó°ÏìCSSµÄЧÂÊ·¢»Ó¡£ÎÒÀ´·ÖÎö×ܽáһϴíÎóËùÔÚ£¬°ïÖú´ó¼Ò¸ü¼ÓÈÝÒ×ʹÓÃCSS¡£
±¾ÎÄ×ܽáÁËÎÒ¿ªÊ¼Ê¹ÓÃCSS²¼¾Ö·½·¨ÒÔÀ´ËùÓеļ¼ÇɺͼæÈÝ·½°¸£¬ÎÒÔ¸Òâ°ÑÕâЩÓëÄã·ÖÏí£¬ÎÒ»áÖصã½âÊÍһЩÐÂÊÖÈÝÒ×·¸µÄ´íÎó(°üÀ¨ÎÒ×Ô¼ºÒ²·¸¹ýµÄ)£¬Èç¹ûÄãÒѾ­ÊÇCSS¸ßÊÖ£¬ÕâÐ ......

³£ÓÃCSSÃüÃû¹æ·¶

Ä£¿é£ºmodule.css
»ù±¾¹²Óãºbase.css
²¼¾Ö¡¢°æÃ棺layout.css
Ö÷Ì⣺themes.css
רÀ¸£ºcolumns.css
ÎÄ×Ö£ºfont.css
±íµ¥£ºforms.css
²¹¶¡£ºmend.css
´òÓ¡£ºprint.css
Í·£ºheader¡¡¡¡
ÄÚÈÝ£ºcontent/container¡¡¡¡
β£ºfooter¡¡¡¡
µ¼º½£ºnav¡¡¡¡
²àÀ¸£ºsidebar
À¸Ä¿£ºcolumn¡¡¡¡
Ò³ÃæÍâΧ¿ØÖÆÕûÌå²¼¾Ö¿í¶È£º ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ