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

css¼æÈÝÓë²î±ð¡¡IE6,IE7,IE8,FireFox,Opera,Safari

¡¾Web¡¿css¼æÈÝÓë²î±ð¡¡IE6,IE7,IE8,FireFox,Opera,Safari
2010-01-16 18:50
¡¾Web¡¿css¼æÈÝÓë²î±ð¡¡IE6,IE7,IE8,FireFox,Opera,Safari
2010-01-13 11:07
ÍâÖÃ
.main{ float:left;#float:none;_float:none;
html*.main{ float:left;#float:none;_float:none; }
*+html .main{ float:left;#float:none;_float:none; }
* html .main{ float:left;#float:none;_float:none; }
µÚ1ÐиøFirefoxÒÔ¼°ÆäËûä¯ÀÀÆ÷¿´
µÚ2Ðиøsafari/IE6/iE7¿´£¬Èç¹ûsafari/IE6/iE7 ÊÓ¾õЧ¹û²»Í³Ò»£¬¾ÍÒªÔÚºóÃæ¸úIE6/IE7µÄ¶¨Òå
µÚ3ÐиøIE7¿´
µÚ4ÐиøIE6ÒÔ¼°¸üÀϵİ汾¿´
ÄÚÖÃ
.main{ float:left;#float:none;_float:none;[float:none;]float:none; }
µÚ1¸öfloat¸øFirefoxÒÔ¼°ÆäËûä¯ÀÀÆ÷¿´
µÚ2¸ö¼Ó#µÄfloat¸øIE7¿´
µÚ3¸ö¼Ó_µÄfloat¸øIE6ÒÔ¼°¸üÀϵİ汾¿´
µÚ4¸ö¼Ó[µÄfloat¸øsafari¿´
µÚ5¸ö¼Ó]µÄfloat¸øIE¿´
¸÷ÖÖ³£¼ûä¯ÀÀÆ÷ʹÓõÄÄÚºË (Rendering Engine)
Mozilla Firefox ( Gecko )
Internet Explorer ( Trident )
Opera ( Presto )
Konqueror ( KHTML )
Safari Swift ( WebKit )
ÓÃcss×Ô¶¯Òþ²Ø³¬³ö¿í¶ÈÄÚÈݲ¢Ê¡ÂÔÏÔʾ£¬ä¯ÀÀÆ÷¼æÈÝie¡¢ff
text-overflow:ellipsis;
-o-text-overflow:ellipsis;
-icab-text-overflow: ellipsis;
-khtml-text-overflow: ellipsis;
-moz-text-overflow: ellipsis;
-webkit-text-overflow: ellipsis;
»ù±¾·ÇIEµÄä¯ÀÀÆ÷µÄ˽ÓÐÊôÐÔ¶¼»áÒÔ-xxx-ÕâÑù¿ªÊ¼£¬
-o-¾ÍÊÇÒÔPrestoΪÒýÇæµÄ Opera˽Óеġ¢
-icab-ÊÇiCab˽Óеģ¬
-khtml-¾ÍÊÇÒÔKHTMLΪÒýÇæµÄä¯ÀÀÆ÷£¨ÈçKonqueror Safari£©¡¢
-moz-¾ÍÊÇÒÔmozillaµÄGeckoΪÒýÇæµÄä¯ÀÀÆ÷£¨ÈçFirefox£¬mozilla£©¡¢
-webkit-¾ÍÊÇÒÔWebkit äÖȾÒýÇ棨ÊÇKHTMLµÄÑÜÉú²úÆ·£©µÄä¯ÀÀÆ÷£¨ÈçSafari¡¢Swift£©¡£
²¢²»ÊÇ˵Ïñ-moz-text-overflowÏÖÔÚÓÐÓ㬶øÊÇÒ»¸ö»ÃÏëµÄд·¨£¬µ±Ò»¸öä¯ÀÀÆ÷µÄ¿ª·¢ÈËÔ±¾ö¶¨ÔÚä¯ÀÀÆ÷Ö§³ÖÒ»ÖÖ»¹Ã»µÃµ½¹«ÈϵÄÊôÐÔʱ£¬Ò»°ã¶¼»áÔÚÊôÐÔµÄÇ°Ãæ¼ÓÉÏ-xxx-ÕâÖÖ£¬±íÃ÷ÕâÖÖÊÇÊôÓÚ¸Ãä¯ÀÀÆ÷˽ÓеÄÊôÐÔ£¬µ±È»£¬ÕâЩÊôÐÔ¶àÊýÀ´×ÔCSS3µÄ£¬Ê¹ÓÃÕâÑùµÄд·¨ÔÚä¯ÀÀÆ÷Éý¼¶ºóÒ²Ðí²ÅÓÐ×÷ÓÃ.
IE¡¢Firefox¡¢OperaºÍSafari¶ÔCSSÑùʽimportantºÍ*µÄÖ§³Ö
1¡¢IE6¡¢IE7¶¼Ö§³Ö *£¬µ«IE8ÖÕÓڻعéÕýͳ£¬·ÅÆúÁ˶Ô*µÄÖ§³Ö
2¡¢IE7¡¢IE8¡¢Firefox¡¢Opera¡¢Safari¶¼Ö§³Ö important
¹ËÃû£¬importantµÄÓÅÏȼ¶Òª¸ß. ¾ÙÀý˵Ã÷£º
<style type=”text/css”>
body
{
backgrou


Ïà¹ØÎĵµ£º

ƯÁÁµÄCSS + XHTMLµ¼º½²Ëµ¥


Äã´ó¸ÅÖªµÀ£º¶ÔÓÚÒ»¸öеķÃÎÊÕßÀ´Ëµ£¬ËûÔÚ×î³õ20ÃëÄÚÓëijÍøÕ¾µÄ»¥¶¯Çé¿ö£¬¾ö¶¨ÁËËûÊÇ·ñ»áÁôÔÚÕâ¸öÍøÕ¾×ö½øÒ»²½µÄ̽Ë÷£¬»¹ÊÇÑﳤ¶øÈ¥¡£Õâ¾ÍÒâζ×Å£¬ÔÚÉè¼ÆÍøÒ³µÄʱºò£¬Äã±ØÐë×ñÑ­Ò»¶¨µÄ¹æÂÉÀ´Áôס·ÃÎÊÕß¡£¼òµ¥µÄ˵£¬¾ÍÊÇ°ÑËùÓеÄÍøÒ³ÔªËØ·ÅÔÚ·ÃÎÊÕßËùÆÚ´ýµÄλÖ᣽øÐдËÉè¼ÆµÄÒ»¸öÖØÒª¶øÓÐЧµÄ²¿·Ö£¬¾ÍÊÇÕûÒ»¸öÒ×ÓÚʹÓÃµÄ ......

CSS Ñùʽ

ÑùʽӦÓõij¡ºÏµ±È»ÊÇÍøÒ³ÎļþÖУ¬µ«ÊÇÈçºÎÈ¥ÔËÓÃÄØ£¿¿ÉÒÔ¼òµ¥µÄÕûÀíÒ»ÏÂ˼·¡£
selector ÓÐÈýÖÖÇé¿ö£¬ÄÚ²¿Ñùʽ£¬ÍⲿÑùʽ£¬ÄÚÁªÑùʽ¡£Ó﷨Ϊ
Selector { property: value }
¿ÉÒÔͨ¹ýÉèÖñêÇ©µÄstyleÊôÐÔÖÐÊéд£¬Í¨¹ýCLASSºÍIDÀ´¶¨Òå¡£
<link rel=stylesheet href="***/**.css" type="text/css">
ÈýÖÖ·½Ê½µÄÔËÓ ......

ÍøÒ³Öг£¼ûCSS HackµÄʹÓÃÕûÀí

_property:value
ÊôÐÔÇ°¼Ó_Ïß,¸Ãhack¶ÔIEÓÐЧ£¬ÔÚFFÏÂÎÞЧ
Õâ¶Î´úÂëÔÚIEÏ¿´,divµÄ±ß¿òΪÀ¶É«,¶øÔÚFireFoxÏÂÎÞЧ
<style type="text/css">
.tx_border{_border:1px solid #333333;}/*Õâ¸öÔÚIEÏ¿ÉÒÔ¿´µ½±ß¿òΪ»ÒÉ«£¬¶øÔÚFFÏÂÊÇûÓÐÈκεÄЧ¹û*/
</style>
Ñ¡Ôñ·û {width:IE5.x¿í¶È; voice-family :"\"}\"" ......

ʲôÊÇCSS HACK,HACKµÄ´¦Àí·½Ê½


       ÓÉÓÚ²»Í¬µÄä¯ÀÀÆ÷£¬±ÈÈçInternet Explorer 6,Internet Explorer 7,Mozilla FirefoxµÈ£¬¶ÔCSSµÄ½âÎöÈÏʶ²»Ò»Ñù£¬Òò´Ë»áµ¼ÖÂÉú³ÉµÄÒ³ÃæЧ¹û²»Ò»Ñù£¬µÃ²»µ½ÎÒÃÇËùÐèÒªµÄÒ³ÃæЧ¹û¡£
¡¡¡¡Õâ¸öʱºòÎÒÃǾÍÐèÒªÕë¶Ô²»Í¬µÄä¯ÀÀÆ÷ȥд²»Í¬µÄCSS£¬ÈÃËüÄܹ»Í¬Ê±¼æÈݲ»Í¬µÄä¯ÀÀÆ÷£¬ÄÜÔÚ²»Í¬µÄä¯ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ