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

css¾ºÕù¹æÔò

¾ºÕù¹æÔò£ºcssÔÊÐí¶à´Î½«Í¬Ò»¸ö¹æÔò¸³Óèij¸öÔªËØ¡£²ãµþÅÅÐò¸ù¾Ý¹æÔòÖÐʹÓõÄÑ¡Ôñ·û½«¹æÔò»®·Ö6×飬¸ßÓÅÏȼ¶×éÀïµÄ¹æÔò»á¸²¸ÇµÍÓÅÏȼ¶×éÀïµÄ¹æÔò¡£ÆÕͨµÄÑ¡Ôñ·û»áÉèÖÃÎĵµµÄ×ÜÌåÑùʽ£¬¸ü¾ßÌåµÄÑ¡Ôñ·û»á¸²¸ÇÆÕͨѡÔñ·û£¬ÒÔΪÆäÌṩ¸ü¼ÓÌØÊâµÄÑùʽ
6¸öÑ¡Ôñ·ûȺ×飺
1.       ʹÓÃ!important¹æÔòȺ×éÓµÓÐ×î¸ßÓÅÏȼ¶£¬ËûÃǻḲ¸ÇµôËùÓзÇ!important¹æÔò
#i100 {border:6px  solid black !important;}
2.       ÓÅÏȼ¶µÚ¶þ¸ßµÄȺ×éÊÇÖ¸ÄÇЩǶÔÚstyleÊôÐÔÀïÃæµÄ¹æÔò¡£ÒòΪʹÓÃstyleÊôÐÔ»áÔö¼Ó´úÂëµÄά»¤ÄѶȣ¬²»½¨ÒéʹÓÃ
3.       ÓÅÏȼ¶µÚÈý¸ßµÄȺ×éÊÇÖ¸º¬ÓÐÒ»¸ö»ò¶à¸öIDÑ¡Ôñ·ûµÄ¹æÔò£¬Èç #i100 {border:6px  solid black }»á¸²¸Ç*.c100{border:4px solid black}
4.       ÓÅÏȼ¶µÚËĸߵÄȺ×éÊÇÖ¸º¬ÓÐÒ»¸ö»ò¶à¸öÀ࣬ÊôÐÔ»ò僞ÀàÑ¡Ôñ·ûµÄ¹æÔò£¬Èç*.c100{border:4px solid black}»á¸²¸Çdiv{border solid black}
5.       ÓÅÏȼ¶µÚÎå¸ßµÄȺ×éÊǺ¬ÓÐÒ»¸ö»ò¶à¸öÔªËØÑ¡Ôñ·ûµÄ¹æÔò£¬Èçdiv{border:2px solid black}»á¸²¸Ç *{ border:0px solid black}
6.       ÓÅÏȼ¶×îµÍµÄÊÇÖ»ÓÐͨÅä·ûµÄ¹æÔò
 
µ±¾ºÕù¹æÔòÊôÓÚͬһ¸öÑ¡Ôñ·ûȺ×éʱ£¬»á°´ÕÕÑ¡Ôñ·ûµÄÖÖÀàºÍÊýÁ¿¶ÔÆä½øÐÐÓÅÏȼ¶ÅÅÐò£¬µ±Ñ¡Ôñ·ûÓиßÓÅÏȼ¶Ñ¡Ôñ·û¶àÓÚËüµÄ¾ºÕùÑ¡Ôñ·û£¬Ëü½«»ñµÃ¸ü¸ßµÄÓÅÏȼ¶¡£Èç#i00 *.c20 *.c10{}ÓÅÏȼ¶¸ßÓÚ#i100 *.c10 div p span{}
 
µ±¾ºÕù¹æÔòλÓÚͬһѡÔñ·ûȺ×é²¢ÓµÓÐͬÑùµÈ¼¶ºÍÊýÁ¿µÄÑ¡Ôñ·ûʱ£¬ËûÃǵÄÓÅÏȼ¶°´Ëù´¦Î»ÖÃÀ´ÅÅ£¬ÒÔÏÂ6¸öλÖÃȺ×é°´´Ó¸ßµ½µÍÓÅÏȼ¶Ë³ÐòÅÅÁУº
1.       ×î¸ßÓÅÏȼ¶Î»ÖÃΪhtmlÎĵµÍ·²¿ÖеÄ<style>ÔªËØ
2.       µÚ¶þ¸ßÊÇͨ¹ý<style>ÔªËØÀïµÄ@importÓï¾äÀ´ÒýÈëµÄÑùʽ±í
3.       µÚÈý¸ßÊÇͨ¹ý<link>ÔªËØÀ´Á´½ÓµÄÑùʽ±í
4.       µÚËĸßÊÇͨ¹ý<link>Á´½ÓµÄÑùʽ±íͨ¹ý@importÓï¾äÒýÈëµÄÑùʽ±í
5.       µÚÎå¸ßÊÇÓÉÖÕ¶ËÓû§°ó¶¨µÄÑùʽ±í£¬³ý·ÇʹÓÃÁË£¡important
6.       ×îµÍÓÅÏȼ¶ÊÇä¯ÀÀÆ÷ÌṩµÄĬÈÏÑù


Ïà¹ØÎĵµ£º

5ÖÖ·½·¨Á¢¿Ìд³ö¸üºÃµÄCSS´úÂë

5ÖÖ·½·¨Á¢¿Ìд³ö¸üºÃµÄCSS´úÂë
Òý×Ô:http://bbs.seuuo.com/thread-2625-1-3.html
µ±È»£¬Ã¿¸öÈ˶¼¿ÉÒÔ±àдCSS´úÂ룬ÉõÖÁÄãÏÖÔÚÒѾ­ÈÃËüΪÄãµÄÏîÄ¿¹¤×÷ÁË¡£µ«ÊÇCSS»¹¿ÉÒÔ¸üºÃÂ𣿿ªÊ¼ÓÃÕâ5¸öTips¸Ä½øÄãµÄCSS°É£¡
1.ÖØÖÃ
Ê×ÏÈ£¬ºÜÈÏÕæµÄ¸æËßÄ㣬×ÜÊÇÒªÖØÖÃijЩ·ÖÀà¡£ÎÞÂÛÄãÊÇʹÓà Eric Meyer Reset¡¢YUI Reset»òÕßÄã×Ô¼º±à ......

CSSÑùʽÎļþÓÅ»¯ ¸üÕû½à¶øÇåÎú


CSS¼òд¾ÍÊÇÖ¸½«¶àÐеÄCSSÊôÐÔÉùÃ÷»¯³ÉÒ»ÐУ¬ÓÖ³ÆΪCSS´úÂëÓÅ»¯¡£CSS¼òдµÄ×î´óºÃ´¦¾ÍÊÇÄܹ»ÏÔ׿õÉÙCSSÎļþµÄ´óС£¬Æäʵ»¹ÓкܶàÆäËûÒæ´¦¡£Ó·Ö׶øÔÓÂÒµÄCSSÑùʽ±í»áʹÄãÓöµ½ÎÊÌâÊÇÄÑÒÔµ÷ÊÔ¡£ÓÈÆäÊǵ±Ò»¸öÍŶÓÔÚ½øÐÐÉè¼ÆµÄʱºò£¬ÄãµÄÓ·Ö×µÄCSS´úÂë»áʹÄãµÄÍŶÓÆäËû³ÉÔ±µÄ¹¤×÷ЧÂÊϽµ¡£
¡¡¡¡½ñÌ죬ÕûÀíÁËһЩCSS¼òд¼¼Ç ......

J2meÖÐcss½âÎö

 J2meÖÐcss½âÎö
 
   ×î½ü×öÊÖ»úä¯ÀÀÆ÷ÏîÄ¿ÖеÄCSSÄ£¿é¡£¶Ô½âÎöcssÓÐÁ˸öÕûÌåÈÏʶ¡£ÏÖ×ܽáÈçÏ£º
   Ê×ÏÈ£¬¼òµ¥µÄ½éÉÜÏÂCSS £º
CSS Ö¸²ãµþÑùʽ±í (Cascading Style Sheets)
CSS Óï·¨ÓÉÈý²¿·Ö¹¹³É£ºÑ¡ÔñÆ÷¡¢ÊôÐÔºÍÖµ£ºselector {property: value}
Ñ¡ÔñÆ÷ (selector) ͨ³£ÊÇÄãÏ£Íû¶¨ÒåµÄ ......

css¾«Áé

¸Õ¿´µ½Ò»ÆªÎÄÕ£¬ËäÈ»ÄÚÈÝ´óÒâ֮ǰÔ綼Á˽â¹ý£¬Ò²¶¼¿´µ½¹ýʵÀý£¬µ«ÊÇ»¹ÊÇÔÚÕâ¸öµØ·½×ܽáһϰɣº
CSS¾«Á飬¿ÉÒÔ°ÑÍøÒ³ÖеÄһЩͼƬºÏ³ÉÒ»¸öͼƬ£¬Í¨¹ýCSSÀ´¿ØÖÆÏÔʾ£¬¼õÉÙHTTPµÄÇëÇó´ÎÊý£¬ÔÚÒ»¶¨³Ì¶ÈÉÏÔö¼ÓWEBµÄ½¡×³ÐÔ¡£
¶ÔÓÚÉÙÓÚ200KµÄͼƬ£¬·þÎñÆ÷½âÎöµÄËٶȶ¼Ã»ÓÐÌرð´óµÄ²î±ð£¬µ«ÊÇͨ¹ýͼƬµÄºÏ³É£¬¿ÉÒÔ¼õÉÙHTTPµÄ´ÎÊ ......

¼æÈÝie6¡¢ie7¡¢ffµÄcss¶¥¶Ë¹Ì¶¨Î»Öö¨Î»

body{
background-image:url(about:blank);
background-attachment:fixed;
}
.myDiv{
position:fixed !important;
position:absolute;
top:expression(eval(document.documentElement.scrollTop));
}
bodyÔªËØÖÐbackground-image:url(about:blank);background-attachment:fixed;¿É·ÀÖ¹ie6ÖгöÏÖÉÁ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ