css+divºÍtable+cssµÄ±È½Ï
css+divºÍtable+cssµÄ±È½Ï
¡¡CSS£«DIVÊÇÍøÕ¾±ê×¼£¨»ò³Æ“WEB±ê×¼”£©Öг£ÓõÄÊõÓïÖ®Ò»£¬Í¨³£ÎªÁË˵Ã÷ÓëHTMLÍøÒ³Éè¼ÆÓïÑÔÖеıí¸ñ£¨table£©¶¨Î»·½Ê½µÄÇø±ð£¬ÒòΪXHTMLÍøÕ¾Éè¼Æ±ê×¼ÖУ¬²»ÔÙʹÓñí¸ñ¶¨Î»¼¼Êõ£¬¶øÊDzÉÓÃcss+divµÄ·½Ê½ÊµÏÖ¸÷ÖÖ¶¨Î»¡£
CSS£«DIVÍøÕ¾Éè¼ÆµÄÓÅÊÆ
Ê×ÏÈ£¬CSSµÄ¼«´óÓÅÊƱíÏÖÔÚ¼ò½àµÄ´úÂ룬¶ÔÓÚÒ»¸ö´óÐÍÍøÕ¾À´Ëµ£¬¿ÉÒÔ½ÚÊ¡´óÁ¿´ø¿í£¬¶øÇÒÖÚËùÖÜÖª£¬ËÑË÷ÒýÇæϲ»¶Çå½àµÄ´úÂ루ÆäÕæÕýÒâÒåÔÚÓÚ£¬Ôö¼ÓÁËÓÐЧ¹Ø¼ü´ÊÕ¼ÍøÒ³×Ü´úÂëµÄ±ÈÖØ£©£¬Òò´ËʹÓÃCSS£«DIVµÄweb±ê×¼ÖÆ×÷µÄÍøÕ¾¾ßÓÐËÑË÷ÒýÇæÓѺõÄÒ»¶¨ÓÅÊÆ¡£
Æä´Î£¬CSS+DIVÖÆ×÷µÄÍøվʹµÃÍøÕ¾¸Ä°æÏà¶Ô¼òµ¥£¬ºÜ¶àÎÊÌâÖ»ÐèÒª¸Ä±äCSS¶ø²»ÐèÒª¸Ä¶¯³ÌÐò£¬´Ó¶ø½µµÍÁËÍøÕ¾¸Ä°æµÄ³É±¾¡£
¾¡¹ÜCSS+DIV¾ßÓÐÒ»¶¨µÄÓÅÊÆ£¬²»¹ýÏֽ׶ÎCSS+DIVÍøÕ¾½¨Éè´æÔÚµÄÎÊÌâÒ²±È½ÏÃ÷ÏÔ£¬Ö÷Òª±íÏÖÔÚ£º
µÚÒ»£¬¶ÔÓÚCSSµÄ¸ß¶ÈÒÀÀµÊ¹µÃÍøÒ³Éè¼Æ±äµÃ±È½Ï¸´ÔÓ¡£Ïà¶ÔÓÚHTML4.0Öеıí¸ñ²¼¾Ö£¨table£©£¬CSS+DIV¾¡¹Ü²»ÊǸ߲»¿É¼°£¬µ«ÖÁÉÙÒª±È±í¸ñ¶¨Î»¸´ÔӵĶ࣬¼´Ê¹¶ÔÓÚÍøÕ¾Éè¼Æ¸ßÊÖÒ²ºÜÈÝÒ׳öÏÖÎÊÌ⣬¸ü²»ÒªËµ³õѧÕßÁË£¬ÕâÔÚÒ»¶¨³Ì¶ÈÉÏÓ°ÏìÁËXHTMLÍøÕ¾Éè¼ÆÓïÑÔµÄÆÕ¼°Ó¦Óá£
µÚ¶þ£¬CSSÎļþÒì³£½«Ó°ÏìÕû¸öÍøÕ¾µÄÕý³£ä¯ÀÀ¡£CSSÍøÕ¾ÖÆ×÷µÄÉè¼ÆÔªËØͨ³£·ÅÔÚ¼¸¸ölÍⲿÎļþÖУ¬ÕâÒ»¸ö»ò¼¸¸öÎļþÓпÉÄÜÏ൱¸´ÔÓ£¬ÉõÖÁ±È½ÏÅÓ´ó£¬Èç¹ûCSSÎļþµ÷ÓóöÏÖÒì³££¬ÄÇôÕû¸öÍøÕ¾½«±äµÃ²Ò²»È̶á£
µÚÈý£¬¶ÔÓÚCSSÍøÕ¾Éè¼ÆµÄä¯ÀÀÆ÷¼æÈÝÐÔÎÊÌâ±È½ÏÍ»³ö¡£»ùÓÚHTML4.0µÄÍøÒ³Éè¼ÆÔÚIE4.0Ö®ºóµÄ°æ±¾Öм¸ºõ²»´æÔÚä¯ÀÀÆ÷¼æÈÝÐÔÎÊÌ⣬µ«CSS+DIVÉè¼ÆµÄÍøÕ¾ÔÚIEä¯ÀÀÆ÷ÀïÃæÕý³£ÏÔʾµÄÒ³Ã棬µ½»ðºüä¯ÀÀÆ÷£¨FireFox £©ÖÐÈ´¿ÉÄÜÃæÄ¿È«·Ç£¨ÕâÒ²ÊÇΪʲô½¨ÒéÍøÂçÓªÏúÈËԱʹÓûðºüä¯ÀÀÆ÷µÄÔÒòËùÔÚ £©¡£CSS+DIV»¹ÓдýÓÚ¸÷¸öä¯ÀÀÆ÷³§É̵ĽøÒ»²½Ö§³Ö¡£
Óùýdiv+css×÷¸öÕû¸öÍøÕ¾£¬Èç¹ûÊÇ´¿´âµÄdivµÄ²¼¾ÖÊDZȽÏÂé·³µÄ£¬ÓÈÆäÊÇÄãdivÀïÃæǶÌ×divµÄ£¬div²¼¾ÖµÄʱºò£¬ÄãÓÐЩҳÃæЧ¹û»¹ÊÇÒªÉáÆúÒ»µãµÄ£¬±ÈÈçͼƬµÄÔ²½Ç£¬ÕâЩÈç¹ûÌ×div±È½ÏÂé·³£¬ÔÚÒ»¸ödivÔÚVS2005Éè¼ÆÆ÷ÀïÃæ¿ÉÄܱäÐΣ¬Èç¹û¹ý¶àµÄÌ×div£¬ÄãʵÏÖajaxÍ϶¯Ð§¹ûµÄʱºò±È½ÏÂé·³£¬ËùÒÔÎÒ¾õµÃÑÛÏ»¹ÊÇdiv+ǶÌ×table±È½ÏºÃ¡£
Ô²½Ç——¿ÉÒÔÓÃdiv+css×ö³öÒ»ÑùƯÁÁµÄÔ²½Ç£¬¶øÇÒ²»ÓÃͼƬ£¬¶øÇÒÊÇ¿í¶È¡¢¸ß¶È×ÔÊÊÓ¦µÄ
Ïà¹ØÎĵµ£º
CSS:
<style type="text/css">
a{
color: #FFFF99;
text-decoration: none;
}
a:hover{
color: #FFFFFF;
text-decoration: underline;
}
#nav{
padding: 10px 10px 0;
font-size: 12px;
font-weight: bold;
margin: 1em 0 0;
......
2009Äê2ÔÂ24ÈÕ
£¬Safari 4.0
beta°æÕýʽ·¢²¼£¬Safari´ÓËüµÄ3.2°æ±¾¿ªÊ¼¾ÍÒѾ֧³ÖËùÓеÄCSSÑ¡ÔñÆ÷(°üÀ¨×îеÄCSS3)¡£²»¹ýΪÁË·½±ã´ó¼ÒµÄ¹¤×÷£¬ÏÂÃæÌṩÁË×îаæ
±¾µÄCSSÑ¡ÔñÆ÷ä¯ÀÀÆ÷Ö§³ÖÇé¿ö£¬ÆäÖаüÀ¨×îеÄCSS3ºÍSafari 4.0 BetaµÄÖ§³ÖÇé¿ö¡£¸ÐлEstelle Weyl
µÄ×ܽᡣ
2009Äê6ÔÂ30ÈÕ
£¬FireFox 3.5·¢²¼£¬ÀàËÆSafar ......
ʹÓÃwap css¿ÉÒÔ°ÑÄÚÈݺͱíʾ·ÖÀ룬ºÃ´¦£º
1.ʹÓÃwcssʹÄÚÈݺÍÑùʽ·ÖÀ룬¿ÉÒÔΪ²»Í¬ÊÖ»ú£¬Éè¼Æ¼¸¸ö°æ±¾wap css style sheet ºÍÖ¸¶¨²»Í¬ÆÁ
Ä»´óС¡£ÄÚÈÝÈ´²»ÐèÒªÐ޸ġ£
2.Ϊ²»Í¬É豸£¬ÈçPC,PDA,MOBILE PHONE£¬×¼±¸²»Í¬Ñùʽ±í£¬ÄÚÈݲ»ÐèÒª¸Ä±ä¡£
3.¼õÉÙά»¤Ò»¸öwapÕ¾µã£¬µ±ÓÐеĵ绰£¬Ö»ÐèÒªÔö¼ÓеÄÑùʽ±í£¬ÄÚÈݲ»ÐèÒ ......
filter:alpha(opacity=50);-moz-opacity:0.5;
Opacity: Ïà¶ÔÓÚIE¡£»ðºüËƺõºÃÏñ²»Ö§³Ö¡£ Öµ£ºÒÔ°Ù·Ö±ÈΪֵ£¬100 ±íʾ²»Í¸Ã÷¶ÈΪ100%£»50²à´ú±í²»Í¸Ã÷¶ÈΪ50%¡£
-moz-opacity: Ïà¶ÔÓÚFF£¬»ðºü¡£ Öµ£ºÒÔСÊýµãΪֵ£¬1 ±íʾ²»Í¸Ã÷¶ÈΪ100%£»0.5²à´ú±í²»Í¸Ã÷¶ÈΪ50%¡£
×¢Ò⣺ÉÏÃæµÄÂ˾µIE8²»Ö§³Ö¡£Òò´ËÎÒÃÇÐèÒªÓà <meta h ......
Alert{
backgroundColor: #2791DB;
headerColors:#2791DB,#2791DB;
borderThicknessLeft:0;
borderThicknessRight:0;
borderThicknessTop:0;
font-size:14;
buttonStyleName: myCustomButtonStyleName;
}
.myCus ......