CSS ѧϰ
¾ø¶Ô¶¨Î»µÄÔªËصÄλÖÃÏà¶ÔÓÚ×î½üµÄÒѶ¨Î»×æÏÈÔªËØ£¬Èç¹ûÔªËØûÓÐÒѶ¨Î»µÄ×æÏÈÔªËØ£¬ÄÇôËüµÄλÖÃÏà¶ÔÓÚ×î³õµÄ°üº¬¿é¡£
¶ÔÓÚ¶¨Î»µÄÖ÷ÒªÎÊÌâÊÇÒª¼ÇסÿÖÖ¶¨Î»µÄÒâÒå¡£ËùÒÔ£¬ÏÖÔÚÈÃÎÒÃǸ´Ï°Ò»ÏÂѧ¹ýµÄ֪ʶ°É£ºÏà¶Ô¶¨Î»ÊÇ“Ïà¶ÔÓÚ”ÔªËØÔÚÎĵµÖеijõʼλÖ㬶ø¾ø¶Ô¶¨Î»ÊÇ“Ïà¶ÔÓÚ”×î½üµÄÒѶ¨Î»×æÏÈÔªËØ£¬Èç¹û²»´æÔÚÒѶ¨Î»µÄ×æÏÈÔªËØ£¬ÄÇô“Ïà¶ÔÓÚ”×î³õµÄ°üº¬¿é¡£
×¢ÊÍ£º¸ù¾ÝÓû§´úÀíµÄ²»Í¬£¬×î³õµÄ°üº¬¿é¿ÉÄÜÊÇ»²¼»ò HTML ÔªËØ¡£
Ìáʾ£ºÒòΪ¾ø¶Ô¶¨Î»µÄ¿òÓëÎĵµÁ÷Î޹أ¬ËùÒÔËüÃÇ¿ÉÒÔ¸²¸ÇÒ³ÃæÉϵÄÆäËüÔªËØ¡£¿ÉÒÔͨ¹ýÉèÖà z-index ÊôÐÔÀ´¿ØÖÆÕâЩ¿òµÄ¶Ñ·Å´ÎÐò¡£
ÅÉÉúÑ¡ÔñÆ÷
li strong {
font-style: italic;
font-weight: normal;
}
idÑ¡ÔñÆ÷
#red {color:red;}
#green {color:green;}
ÀàÑ¡ÔñÆ÷
.center {text-align: center}
Ïà¹ØÎĵµ£º
×î½ü,¾³£ÓÐÅóÓÑÎÊÎÒһЩ¹¤×÷ÖÐÓöµ½µÄCSSÎÊÌâ¡£ËûÃÇ×ÜÊDz»ÄܺܺõĿØÖÆCSS£¬Ó°ÏìCSSµÄЧÂÊ·¢»Ó¡£ÎÒÀ´·ÖÎö×ܽáһϴíÎóËùÔÚ£¬°ïÖú´ó¼Ò¸ü¼ÓÈÝÒ×ʹÓÃCSS¡£
±¾ÎÄ×ܽáÁËÎÒ¿ªÊ¼Ê¹ÓÃCSS²¼¾Ö·½·¨ÒÔÀ´ËùÓеļ¼ÇɺͼæÈÝ·½°¸£¬ÎÒÔ¸Òâ°ÑÕâЩÓëÄã·ÖÏí£¬ÎÒ»áÖصã½âÊÍһЩÐÂÊÖÈÝÒ×·¸µÄ´íÎó(°üÀ¨ÎÒ×Ô¼ºÒ²·¸¹ýµÄ)£¬Èç¹ûÄãÒѾÊÇCSS¸ßÊÖ£¬ÕâÐ ......
ÔÚasp.netÖУ¬ÓеÄʱºòÒª¶¯Ì¬±ä»»CSS£¬±ÈÈçÓеÄʱºò×ö¸öÐÔ»¯Ò³Ã棬¿ÉÒÔÕâÑù×ö
<head>
<link id="MyStyleSheet" rel="stylesheet" type="text/css" runat="server" />
</head>
Ö®ºó£¬ÔÚÒª¸ü»»CSSµÄÒ³ÃæÖУ¬Ê¹ÓÃÈçÏ´úÂë
Sub Page_Load(Sender As Object, E As EventArgs)
If Not (IsPostBack) ......
ÍøÒ³²ÉÓÃÁË UTF-8 ±àÂë¸ñʽ£¬Õâ±¾À´Ã»ÓÐÎÊÌ⣬ÎÊÌâÊÇÍⲿ CSS ÎļþĬÈÏÊÇ ANSI ±àÂ룬²¢Ã»Óб£´æΪ UTF-8 ¸ñʽ¡£¿ÉÄÜÄã»á·¢ÏÖÔÚÒ»°ãÇé¿öÏÂÕâÑùÒ²ÊÇûÓÐÎÊÌâµÄ£¬È»¶øµ± CSS ÎļþÖаüº¬ÓÐÖÐÎÄ×¢ÊÍʱ¾Í¿ÉÄܲ»¾¡ÈçÈËÒâÁË£¡
¡¡¡¡¹À¼ÆÊÇ IE6 °æ±¾ÒÔϵÄä¯ÀÀÆ÷ÔÚ½âÎöÕâ¸ö CSS ÎļþʱÒòΪ±àÂëÎÊÌâ¶øÎÞ·¨ÕýÈ·½âÎö£¬ËùÒԲŻᷢÉú CSS ......
ÍøÒ³¿ª·¢ÈËÔ±¶¼ÖªµÀ,ÏÖÔÚµÄä¯ÀÀÆ÷¶Ô²»Í¬µÄjs,cssµÄ½âÎö²»¾¡Ïàͬ£¬ÌرðÊǣɣÅÔçÆÚ°æ±¾µÄ²»¹æ·¶.²»¹ýÒÔºó»áºÃһЩ£¬ÏÖÔÚµÄä¯ÀÀÆ÷а汾¶¼ÔÚÏò£×£³£Ã¿¿Â££®ÏÖÔÚÎÒÃÇÒª½â¾öµÄÊÇÏÖÔÚµÄÎÊÌ⣮
½â¾öcssºÍjsÕë¶Ô²»Í¬ä¯ÀÀÆ÷¼æÈݵÄÎÊÌâ
Ê×ÏÈ̸һÏÂä¯ÀÀÆ÷£¬ËäÈ»ÏÖÔÚieÒÀÈ»ÊÇä¯ÀÀÆ÷Êг¡µÄÀϴ󣬴óÔ¼Õ¼ÓÐ67%µÄ·Ý¶î£¬µ«ÊÇÓÉÓÚÆä¸÷·½ÃæµÄ ......
ÕâÊÇÎÒÔÚÒ»¸öÍøÕ¾ÉÏ¿´µ½µÄ,CSS¿ØÖÆÒ»¸ö²Ëµ¥,ºÜ¾µäʵÓÃ
CssÎļþÈçÏÂ:css.css
@charset "UTF-8";
/* navigation.css
$Revision: 1.0 $
(c) 2008 Fortinet, Inc. All rights reserved.
*/
/* Navigation Styles ------------------------------------------- */
#wrapper
{
width:1000px;margin:0 auto;
}
......