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

CSS×î¼Ñʵ¼ù 1

ÕâÊDZ¾ÈËѧϰCSSµÃһЩÐĵ㬾õµÃºÜÓÐÓã¬Ï£Íû¶Ô´ó¼ÒÒ²ÓÐËù°ïÖú¡£
1. ÈçºÎдCSSÓѺõÄHTML.
´ó¼ÒÖªµÀÒªÊÇ×Ô¼ºµÄÒ³Ãæ¼æÈݲ»Í¬³§ÉÌ£¬²»Í¬°æ±¾µÄä¯ÀÀÆ÷¼òÖ±¾ÍÊÇÒ»³¡Ø¬ÃΡ£Ò»·½ÃæÊÇÒòΪ²»Í¬ä¯ÀÀÆ÷µÄ²îÒìÐÔ£¬»¹ÓиüÖØÒªµÄÊÇÎÒÃÇ×Ô¼ºÐ´
µÄHTML²»¹æ·¶¡£ÎÒ¾õµÃÿ¸öHTMl±êÇ©¶¼ÓÐËüµÄÌض¨µÄÓÃ;£¬ÓÐËüµÄÊéд¹æ·¶£¬ÎÒÃDZØÐë×ñÊØÕâЩ¹æ·¶£¬²»ÄÜÉá½üÇóÔ¶£¬²»Ó÷ÏÆúµÄ±êÇ©ºÍÊôÐÔ£¬
¾Í¿ÉÒÔ¼õÉÙä¯ÀÀÆ÷²»¼æÈݵÄÎÊÌâ¡£ÒÔÏÂÊÇÎÒÃÇÓ¦¸Ã×¢ÒâµÄ¼¸µã.
    1). Ò»¸öÒ³ÃæÖ»ÓÃÒ»¸öh1.
    2). ÖØÒªÐÔ²»Í¬µÄÄÚÈÝÒªÓò»Í¬¼¶±ðµÄheader (h1, h2, h3).
    3). ¶ÎÂä±êÇ©pÓÃÓÚÕû¶ÎÎı¾¡£
    4). ÎÞÐòÁбíulÒ»°ãÓÃÓÚ¼¸¸öÏà¹ØµÄitem, ±ÈÈçµ¼º½Ìõ£¬×Ó±êÌ⣬»ò°ïÖúÌõÄ¿¡£
    5). ÓÐÐòÁбíolÒ»°ãÓÃÓÚÒ»¸öÓÃÓÚ±íʾ²½Ö裬ÓÐÐòÁбíµÈ¡£
    6). ¶¨ÒåÒ»Á¬´®ÊõÓï(term)ʹÓÃdl(definition list), dt(definition term)ºÍdd(definition description).
    7). ҪʹÓÃÒ»¶ÎÒýÓõÄÎı¾µÄʹÓÃblockquote(¶àÐÐ)»òq(µ¥ÐÐ)
    8). ʹÓÃciteÀ´ÒýÓÃÊéÃû£¬±¨Ö½Í·Ìõ£¬ÍøÕ¾. addressÓÃÀ´ÏÔʾ±¾Ò³×÷ÕßµÄÁªÏµÐÅÏ¢£¬»òcopyright.
    9). ¾¡Á¿²»ÒªÎª±êÇ©Ìí¼Ó¿ØÖÆÏÔʾµÄÊôÐÔ¡£
    10). Èç¹ûÕÒ²»µ½·ûºÏÐèÒªµÄ±êÇ©²Å¿¼ÂÇÓÃdivºÍspan.
    11). Ò»¶¨ÒªÊ¹±êÇ©½áÊø£¬°üÀ¨br, img.
    12). Ò»¶¨ÒªÓÐDoctype. DoctypeÔÚxhtmlÖÐÊDZØÐëµÄ£¬ÔÚhtmlÖÐÉùÃ÷doctypeÒ²ÊÇÒ»ÖֺõÄÏ°¹ß£¬ÒòΪËü»áÓ°ÏìÒ³ÃæÔÚä¯ÀÀÆ÷ÖеÄÏÔʾ£¬ä¯ÀÀÆ÷»á¸ù¾Ý²»Í¬µÄdoctype¶øʹÓõIJ»Í¬µÄruleÀ´½âÊÍÖ´ÐÐÒ³ÃæÔªËØ¡£²»ÉùÃ÷doctype»¹¿ÉÄܻᵼÖ²»Í¬ä¯ÀÀÆ÷ÏÔʾ´æÔÚ²îÒì.


Ïà¹ØÎĵµ£º

@importµ÷ÓÃcssºÍlink hrefµ÷ÓÃÓÐʲôÇø±ð£¿


2010-01-26
@importµ÷ÓÃcssºÍlink hrefµ÷ÓÃÓÐʲôÇø±ð£¿
ÎÄÕ·ÖÀà:WebÇ°¶Ë
´ó¼ÒÈ¥·ÖÎöһЩ´óÕ¾µÄcss´úÂëʱ£¬¶¼»á·¢ÏÖµ÷ÓÃcssÓÐÒÔÏÂÁ½ÖÖ·½·¨£º
·½·¨Ò»£º
<style type="text/css">
<!--
@import url("css/main.css");
@import url("css/font.css");
@import url("css/layout.css");
-->
</style ......

³£ÓõÄcssÑùʽ

×ÖÌå
font-family: ×ÖÌåÃû³Æ
Èç¹ûÔÚ
font-familyºó¼ÓÉ϶àÖÖ×ÖÌåµÄÃû³Æ£¬ä¯ÀÀÆ÷»Ø°´×ÖÌåÃû³ÆµÄ˳ÐòÖðÒ»ÔÚÓû§µÄ¼ÆËã»úÀïÑ°ÕÒÒѾ­°²×°µÄ×ÖÌ壬һµ©Óöµ½ÓëÒªÇóµÄÏàÆ¥ÅäµÄ×ÖÌ壬¾Í°´Õâ
ÖÖ×ÖÌåÏÔʾÍøÒ³ÄÚÈÝ£¬²¢Í£Ö¹ËÑË÷£»Èç¹û²»Æ¥Åä¾Í¼ÌÐøËÑË÷£¬Ö±µ½ÕÒµ½ÎªÖ¹£¬ÍòÒ»Ñùʽ±íÀïµÄËùÓÐ×ÖÌ嶼ûÓа²×°µÄ»°£¬ä¯ÀÀÆ÷¾Í»áÓÃ×Ô¼ºÄ¬Èϵ ......

Mozilla½¨ÒéµÄCSSÊéд˳Ðò

/* mozilla.org Base Styles
* maintained by fantasai
* (classes defined in the Markup Guide - http://mozilla.org/contribute/writing/markup)
*/
/* Suggested order:
//ÏÔʾÊôÐÔ
* display
* list-style
* position
* float
* clear
//×ÔÉíÊôÐÔ
* width
* height
* margin
* padding
* border
* ba ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ