¶ÔDIV+CSSµÄÒ»µãÐĵÃÌå»á£¬ÈÃÄ㾡¿ìѧ»á²¼¾ÖÉèÖÃ
Çë¿´ÏÂÃæÒ»¶Î´úÂ룺
<HTML>
<HEAD>
<style>
#login {font-size:14px;color:blue;}//¶¨ÒåÁËÒ»¸öID
.left{FONT-SIZE=12PX;COLOR=RED;TEXT-ALIGN=CENTER;}//¶¨ÒåÁËÒ»¸öÀà
</style>
<TITLE>Öйú</TITLE>
<BODY>
<DIV STYLE="FONT-SIZE=12PX;COLOR=RED;TEXT-ALIGN=RIGHT;">TEST</DIV>//Ö±½ÓÉèÖÃÑùʽ
<DIV ID="login">TEST</DIV>//ÒýÓÃID
<DIV class="left">TEST</DIV>//ÒýÓÃÀà
<DIV>TEST</DIV>
</BODY>
</HTML>
ID£º±íʾΨһÐÔ£¬²¢ÇÒÔÚÕâ¸öÒ³ÃæÖÐÖ»»á³öÏÖÒ»´Î£¬ÎÒÃÇËüÀ´±íʾ²¼¾ÖµÄ½á¹¹
CLASS£ºÀ࣬±íʾһ×é»òÒ»¸ö¾ßÓÐͬÑùÐÔÖʵÄÔªËØ£¬Ëü¿ÉÒÔ¹²ÓÃÑùʽ
#LOGIN±íʾijһ¸öID²ã£¬ÏÂÃ滹¿ÉÒÔÉèÖÃÀ࣬±ÈÈç#LOGIN.LEFT{TEXT-ALIGN:CENTER;},Õâ¸öLEFTÀà¿ÉÒÔÔÚIDΪLOGINµÄ¿ò¼ÜÖÐʹÓã¬ÆäËüµØ·½ÎÞЧ
Ïà¹ØÎĵµ£º
ÎÒÔÚwww.c09.com ·¢±íÁËÕâ¸ö±Ê¼Ç²¢ÉÏ´«ÁËÔÖøµÄPDF£¬½ñÌìÓпգ¬×ªµ½BLOGÉÏÀ´¡£
ÕÐÊýºÍ¹ýÂËÆ÷
IEµÄÓÐÌõ¼þ×¢ÊÍ£º½öÓÃÕâÒ»Ï¾Í¿ÉÒÔ½â¾öIEµÄ¼æÈÝÎÊÌ⣬ÖÁÓÚÆäËüä¯ÀÀÆ÷µÄ²»Í¬°æ±¾£¬ÎÒÃÇÍêÈ«¿ÉÒÔºöÂÔ²»¼Æ¡£[code]
/*ÓÐÌõ¼þ×¢ÊͽöÔÚIEÖÐÖ§³ÖÇÒIE5ÒÔºóµÄËùÓа汾¾ùÖ§³Ö*/
<!--[if IE]
<style type='text/css'>
@im ......
×î½ü×÷¹æ·¶,µÃµ½¹«Ë¾¸ßÊֵĴͽ̣¬ÔÚÖÆ×÷¾²Ì¬Ò³ÃæÖУ¬¾³£Óöµ½¼¸¸ödivµÄ¸¡¶¯ÎÊÌ⣬ÒòΪIE²»Í¬°æ±¾´¦Àí¸¡¶¯»áÏÖÁ½±¶²î¾àµÄÎÊÌ⣨IE6£¬IE7£©£¬ÒÔÇ°¶¼ÊÇͨ¹ýhack¼¼Êõ´¦Àí£¬£¨Èç margin-left:10px,[*margin-left:5px;],_margin-left:5px;ÕâÊÇIEµÄÎÊÌ⣩£¬ÏÖÔÚÓÐÒ»¸ö·½·¨£ºÔÚµÚÒ»¸ödivµÄclass¼ÓÉÏ£¨disp ......
ת×Ô£ºhttp://www.linji.cn/post/1595/
ÓÃCSSÈÃÔªËؾÓÖÐÏÔʾ²¢²»ÊǼþºÜ¼òµ¥µÄÊÂÇ闗ͬÑùµÄºÏ·¨CSS¾ÓÖÐÉèÖÃÔÚ²»Í¬µÄä¯ÀÀÆ÷ÖеıíÏÖÐÐΪȴ¸÷ÓÐǧÇï¡£ÔÚÕâÀÎÒ½éÉÜÒ»ÖֺܺõľÓÖд¦Àí°ì·¨£¬µ«Õâ֮ǰ£¬ÈÃÎÒÃÇÏÈÀ´¿´¿´×î³£¼ûµÄʹÓÃCSS¾ÓÖÐÔªËصķ½·¨¡£
ʹÓÃ×Ô¶¯Íâ±ß¾àʵÏÖ¾ÓÖÐ
CSS
ÖÐÊ×Ñ¡µÄÈÃÔªËØˮƽ¾ÓÖеķ ......
CSS(²ãµþÑùʽ±í),¿ÉÄÜ¿´¹ýÍøÕ¾ÖÆ×÷½Ì³ÌÍø»ù´¡½Ì³ÌµÄÈ˶¼ÖªµÀ´ó¸ÅÊÇʲô»ØÊÂ.±¾ÎÄÀ´²âÒ»ÏÂ,ÄãѧϰCSSÏÖÔÚ´¦ÓÚÔõôһ¸ö½×¶Î»òÕß˵´¦ÔÚÒ»¸öʲôµÈ¼¶.
±¾ÎÄ×ܹ²½«CSSѧϰÕߴӵ͵½¸ß·ÖΪÁù¸öµÈ¼¶.¿ìÀ´¿´¿´ÄãÊÇÔÚÄĸöµÈ¼¶.
¡¡¡¡µÚ0¼¶£ºCSS£¿Ê²Ã´CSS,ÊDz»ÊÇCS°¡.ÄÇÓÎÏ·ÎÒÍæ¹ýѽ.ÊǸö¶àÈËÓÎ ......
display Property Values
ValueDescription
none
The element will generate no box at all
block
The element will generate a block box (a line break before and after the element)
inline
The element will generate an inline box (no line break before or after the element). This is default
inline-blo ......