¡¶¾«Í¨CSS¸ß¼¶WEB±ê×¼½â¾ö·½°¸¡·µÚËÄÕ£º¶ÔÓ¦Á´½ÓÑùʽ
ÎÒÔÚwww.c09.com ·¢±íÁËÕâ¸ö±Ê¼Ç²¢ÉÏ´«ÁËÔÖøµÄPDF£¬½ñÌìÓпգ¬×ªµ½BLOGÉÏÀ´¡£
µÚËÄÕ¡¢¶ÔÓ¦Á´½ÓÑùʽ
4.1 ¼òµ¥µÄÁ´½ÓÑùʽ[code]
/*ËùÓÐÁ´½ÓºìÉ«*/
a{color:red;}
/*δ·ÃÎÊÁ´½ÓÀ¶É«£¬ÒÑ·ÃÎʺìÉ«*/
a:link{color:blue;}
a:visited{color:green}
/*Êó±êÐüͣʱÁ´½ÓºìÉ«*/
a:hover,active{color:red;}
/*ƽʱ²»ÏÔʾÏ»®Ïߣ¬Êó±êÐüͣʱÏÔʾÏ»®Ïß*/
a:link,avisited{text-decoration:none;}
a:hover,a:active{text-decoration:underline}
[/code]4.2 ÈÃÏ»®Ï߸üÓÐȤ[code]
/*ÓüӴÖЧ¹û´úÌæÏ»®Ïß*/
a:link,avisited{
text-decoration:none;
font-weight:bold;
}
/*Êó±êÐüͣʱÏÔʾÏ»®Ïß*/
a:hover,avisited{
text-decoration:none;
border-bottom:1px dotted #000;
}
/*¸Ä±äÏ»®ÏßʽÑù*/
a:hover,a:active{
border-bottom-style:solid;
}
/*ÓÃͼƬ»æÖÆÏ»®Ïß*/
a:link,a:visited{
color:#666;
text-decoration:none;
background:url(images/underline1.gif) repeat-x left bottom;
}
/*Êó±êÐüͣʱÏÔʾ¶¯»±³¾°*/
a:hover,a:active{
background-image:url(images/underline1-hover.gif);
}
[/code]4.3 Í»³ö²»Í¬ÀàÐ͵ÄÁ´½Ó[code]
/*ΪËùÓÐÍⲿÁ´½ÓÌí¼ÓÒ»¸öÀ࣬Ϊ¸ÃÀàÌí¼ÓÒ»¸öÍⲿÓʼþͼ±ê*/
.external{
backgrount:url(images/externallink.gif) no-repeat right top;
padding-right:10px;
}
/*²»ÓÃÊÖ¹¤Ìí¼ÓÀ࣬×Ô¶¯ÅбðÍⲿÁ´½Ó(½öа汾ä¯ÀÀÆ÷¿ÉÓÃ)*/
a[href^="http:"]{
background:url(images/externallink.gif) no-repeat right top;
padding-right:10px;
}
/*±¾Õ¾Á´½Ó³ýÍâ*/
a[href^="http://www.cn09.com"],a[href^="http://cn09.com"]{
background-image:none;
padding-right:0;
}
/*ÀàËƵģ¬¿ÉÓÃÌí¼ÓÓʼþÁ´½Óͼ±ê*/
a[href^="mailto:"]{
background:url(images/email.png) no-repeat right top;
padding-right:10px;
}
/*·Ç±ê×¼ÐÒéÈçaim*/
a[href^="aim:"]{
background:url(images/im.png) no-repeat right top;
padding-right:10px;
}
/*pdfºÍwordÎĵµ*/
a[href$=".pdf"]{
backg
Ïà¹ØÎĵµ£º
ÍøÕ¾±äºÚ»ÒÉ«CSSÂ˾µ´úÂë
Òý×Ô:http://edu.seuuo.com/html/81/n-12181.html
Ϊ·½±ãÕ¾µã°§µ¿£¬ÌØÌṩcssÂ˾µ´úÂ룬ÒÔ±í°§µ¿¡£ÒÔÏÂΪȫվCSS´úÂë¡£
html { filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); }
ʹÓ÷½·¨£ºÕâ¶Î´úÂë¿ÉÒÔ±äÍøҳΪºÚ°×£¬½«´úÂë¼Óµ½CSS×¶Ë¾Í¿ÉÒÔʵÏÖËØ×°¡£½¨ÒéÈ«¹úÕ¾³¤¶¯ ......
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>ÎÞ±êÌâÎĵµ</ ......
Åöµ½ºÃЩÎÊÌ⣬FirefoxÏÂÃæ¿´×źÜÍêÃÀ£¬ie6ÏÂÃæ¾Í²Ò²»È̶㬻¹ºÃ£¬Ò»µãµãÂýÂý½â¾öÁË¡£Ò»Ð©¶«Î÷ժ¼һÏ£¬ÒÔºóÒ²ÐíÓõõ½¡£
DIV+CSS½â¾öIE6£¬IE7£¬IE8£¬FF¼æÈÝÎÊÌâ
ÄÇÎÒÀ´ËµËµ°É£¬×öÁ˼¸ÄêµÄDIV+CSS£¬Ò²»ýÀÛÁ˲»ÉÙ½â¾ö¼æÈÝÎÊÌâµÄ·½·¨£¬ÎÒÕâÀïֻ˵ÏÖÔÚÖ÷Á÷µÄ¼¸¸ö£¬£¨IE6£¬IE7£¬IE8£¬FF£©ÆäËüµÄûȥÑо¿¹ý
1.ie8ϼæÈÝÎÊÌ⣠......
jQuery, MooTools, Prototype µÈÓÅÐãµÄ
JavaScript ¿ò¼ÜÓµÓи÷ÖÖÇ¿´óµÄ¹¦ÄÜ£¬°üÀ¨»æÖÆ Web ͼ±í£¬Ê¹ÓÃÕâЩ¿ò¼ÜÒÔ¼°ÏàÓ¦²å¼þ£¬ÎÒÃÇ¿ÉÒԷdz£ÇáËɵØʵÏÖÇúÏßͼ£¬Ô²±ýͼ£¬Öù״ͼµÈ
Web ͼ±íµÄ»æÖÆ£¬¶ø²»±ØÏóÒÔÍùÄÇÑùͨ¹ý¸´Ô Flash ¼¼ÊõʵÏÖ¡£±¾ÎĽéÉÜÁË9¸öÓÅÐãµÄ»ùÓÚ JavaScript Óë CSS& ......
ÎÒÔÚµÚ¾ÅÇø ÉÏ·¢±íÁËÕâ¸öϵÁеıʼǣ¬²¢ÉÏ´«ÁËÔ×÷µç×ÓÊ飬½ñÌìÓпգ¬×ªÒ»Ï¹ýÀ´¡£
µÚÒ»Õ¡¢»ù´¡ÖªÊ¶
1.1Éè¼Æ´úÂëµÄ½á¹¹
Éè¼Æ´úÂëʱӦ¸ÃʹÓÃÓÐÒâÒåµÄ±ê¼Ç£¬±ÈÈ磬xHTMLÀï°üº¬ºÜ¶àÓÐÒâÒåµÄÔªËØ£¬Èçh1¡¢ul¡¢strong¡¢theadµÈµÈ£¬Ó¦ÓÃʹÓÃËùÓÐÒâÒåºÏÊʵÄÔªËØ£»µ±ÏÖÓÐÔªËز»×ãÒÔÃèÊöÒ³ÃæÄÚÈÝʱ£¬¿ÉÒÔÓÃid»òÊÇclassÀ´¸³ÓèËüÃǶ ......