ΪʲôҪʹÓÃCSS

ʱ¼ä:2013-03-02 03:51À´Ô´:δ֪ ×÷Õß:admin µã»÷: ´Î

±êÇ©£ºÎªÊ²Ã´ÒªÊ¹ÓÃCSS ½øÐÐ(16)HTML(42)CSS(655)´«Í³(6)ʹÓÃ(77)ÑÔÖÐ(1)Ϊʲô(17)Äܹ»(24)Ò³Ãæ(60)
ÔÚ´«Í³µÄhtmlÓïÑÔÖÐÎÒÄܹ»¶ÔÒ³Ãæ½øÐмòÂÔµÄÅŰ棬±È·½ÏÂÃæµÄÀý×Ó body h2font color=#0000FF face=ºÚÌåCSS±ê¼Ç1/h2 pCSS±ê¼ÇµÄÕýÎÄÄÚÈÝ1/p h2font color=#0000FF face=ºÚÌåCSS±ê¼Ç2/h2 pCSS±ê¼ÇµÄÕýÎÄÄÚÈÝ2/p h2font color=#0000FF face=ºÚÌåCSS±ê¼Ç3/h2 pCS
¡¶ÎªÊ²Ã´ÒªÊ¹ÓÃCSS¡·ÎÄÕµØÖ·£ºhttp://www.tfxk.com/wangyesheji/jianzhanjingyan/030233G02013.htm


ÔÚ´«Í³µÄhtmlÓïÑÔÖÐÎÒÄܹ»¶ÔÒ³Ãæ½øÐмòÂÔµÄÅŰ棬±È·½ÏÂÃæµÄÀý×Ó
<body>
<h2><font color="#0000FF" face="ºÚÌå",Ϊʲô´úÂëά»¤£¬Öع¹±È½ÏÄÑ;>CSS±ê¼Ç1</h2>
<p>CSS±ê¼ÇµÄÕýÎÄÄÚÈÝ1</p>
<h2><font color="#0000FF" face="ºÚÌå">CSS±ê¼Ç2</h2>,ΪʲôÈËÃÇϲ»¶·­Ò³Ð§¹û£¿;
<p>CSS±ê¼ÇµÄÕýÎÄÄÚÈÝ2<,ΪʲôÖÐÎÄÍøÒ³µÄ²¼¾ÖºÍÓ¢ÎÄÍøÒ³²¼¾Ö²î±ðÄÇô´ó;/p>
<,ÖÐÎÄ°æChromeϲ»ÄÜÏÔʾСÓÚ12pxµÄ×ÖºÅÈçºÎ½â¾ö;h2><font color="#0000FF" face="ºÚÌå">CSS±ê¼Ç3</h2>
<p>CSS±ê¼ÇµÄÕýÎÄÄÚÈÝ3</p>
</body>

 

ÏÂÃæÕâ¶Î¾ÍÊǰѳÖ<,ÖÐÎÄÅÅ°æCSSÐĵÃ;h2>±ê¼ÇµÄ¿îʽµÄ£¬ÎÒÃÇÖ»ÓÐÐÞ¸ÄÀïÃæµÄ¾Ö²¿¼´¿É£¬ºÃ±ÈÎÒÃÇ°Ñ×ÖÌ嶼¸Ä³ÉÓ×Ô²¡£

 

Tag£ºCSS»ù±¾   CSS»ù´¡  

ÎÒÃÇ¿ÉÒÔ¿´µ½CSSµÄÉÏ·ç¡£ËùÒÔCSSÔÚÍøÒ³Éè¼ÆÖÐÊÇÎÞ±ÈÖ÷ÒªµÄ£¬ÎÒÃÇÕâÀïÖ»ÊǼòµ¥µÄÏÈÈÝÁËËüµÄÒ»¶¡µãµÄ¹¦Ð§£¬¸ü¶àµÄ¿ÉÒԲο¼±¾Õ¾CSS½Ì³ÌÀ¸Ä¿¡£

ÎÒÃÇ¿ÉÒÔ¿´µ½ºó¹ûÊÇ£º

<style>
<!--
h2{
font-family:Ó×Ô²;
color:blue,ÖÐÎÄËÎÌåÓë΢ÈíÑźڵľàÀë;
}
-->
</style>

È»¶ø¼ÙÈçÎÒÃÇÒªÐÞ¸ÄËĸöÌâÄ¿µÄÉ«²Ê£¬ÎÒÃǾÍÐëÒª¶Ôÿ¸ö±êÌâ½øÐÐÐÞÕýÁË,ÖÐÎÄ×ÖÌåÔÚCSSÖеıí´ï·½Ê½£¬ÕâÑù¶ÔÈ«²¿ÍøÕ¾À´Ëµ¹¤×÷Á¿ÊÇÊ®·Ö´óµÄ£¬Õâ¸öʱºòÔÛÃǾͱØÐèÓ¦ÓÃCSSÀ´½â¾öÕâÒ»ÎÊÌ⣬ÎÒÃÇ¿ÉÒÔÕâÑù×ö£º<style>
<!--
h2{
font-family:Ó×Ô²;
color:blue;
}
-->
</style>

--> [ÍøÕ¾½¨ÉèÖ®]ΪʲôҪʹÓÃCSS

<body>
<h2>CSS±êÖ¾1</h2>,ÖÐСÐ͵çÉÌÆóÒµÈçºÎ´òÔì×ÔÖ÷Æ·ÅÆ;
<p>CSS±ê¼ÇµÄÕýÎÄÄÚÈÝ1</p>
<,ÖÐСÐ͵çÉÌÆóÒµ×öSEM¾º¼ÛÉ÷Óù㷺ƥÅä;h2>CSS±ê¼Ç2</h2>
<p>CSS±ê¼ÇµÄ×¢ÊÍÄÚÈÝ2</p>
<h2>CSS񈬀3</h2>
<p>CSS±ê¼ÇµÄÕýÎÄÄÚÈÝ3<,ÖÐСÆóÒµÀûÓðٶÈÖªµÀÍƹãÓÐÃŵÀ;/p>

</body>


(ÔðÈα༭£ºÍøÕ¾½¨Éè)
ΪʲôҪʹÓÃCSSÏà¹ØÎÄÕÂ
ÉÏһƪ£ºÎªÊ²Ã´´úÂëά»¤£¬Öع¹±È½ÏÄÑ ÏÂһƪ£ºÎªÊ²Ã´ÒªÓн»»¥Éè¼ÆºÍ½»»¥Éè¼ÆÄܹ»½â¾öʲôÎÊÌâ
»Øµ½¶¥²¿