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

CSS»ù´¡Á·Ï°

-----------------------------------------------
Á´½ÓÍâÃæÎļþcss
<link href="layout.css" rel="stylesheet" type="text/css" />
-----------------------------------------------
дÎı¾ :  <div id="mainContent">
    <p>1Áй̶¨¿í¶È¾ÓÖÐ+Í·²¿+µ¼º½+β²¿——<a href="http://www.aa25.cn">±ê׼֮· </a></p>
-----------------------------------------------
¼ÓÉÏϼä¸ô
  <br class="clearfloat" />
-----------------------------------------------
¼Ó»Ø³µ
<p>This is the sidebar<br />
        <br />
    This is the sidebar<br />
      <br />
    This is the sidebar </p>
-----------------------------------------------
#layout {
    border: 2px solid #A9C9E2;
    background-color: #E8F5FE;
    height: 200px;
    width: 300px;
    margin:0px auto;
}
marginÊôÐÔÓÃÓÚ¿ØÖƶÔÏóµÄÉÏ¡¢ÓÒ¡¢Ï¡¢×óËĸö·½ÏòµÄÍâ±ß¾à£¬µ±marginʹÓÃÁ½¸ö²ÎÊýʱ£¬µÚÒ»¸ö²ÎÊý±íʾÉÏϱ߾࣬µÚ¶þ¸ö²ÎÊý±íʾ×óÓұ߾ࡣ³ýÁËÖ±½ÓʹÓÃÊýÖµÖ®Í⣬margin»¹Ö§³ÖÒ»¸öÖµ½Ðauto£¬autoÖµÊÇÈÃä¯ÀÀÆ÷×Ô¶¯Åжϱ߾࣬ÔÚÕâÀÎÒÃǸøµ±Ç°divµÄ×óÓұ߾àÉèÖÃΪauto£¬ä¯ÀÀÆ÷¾Í»á½«divµÄ×óÓұ߾àÉèΪÏ൱£¬²¢³ÊÏÖΪ¾ÓÖÐ״̬£¬´Ó¶øʵÏÖÁ˾ÖÖÐЧ¹û¡£
-----------------------------------------------
#right{
background-color:#999999;
border:3px; solid #333;
width: 200px;
height: 50px;
float:left;
}
float ÊôÐÔ¶¨ÒåÔªËØÔÚÄĸö·½Ïò¸¡¶¯¡£ ,,,¼òµ¥ËµÎªÏÔʾ ×óÓÒ2¸öÁÐ.
----------------------------------------------- 
position¡¡¡¡ÓÃÓÚÉèÖöÔÏóµÄ¶¨Î»·½Ê½¡¡¡¡
 #layout {
    position:absolute;
    top:20px;
    left:0px;
}
-----------------------------------------------


Ïà¹ØÎĵµ£º

Ä¿Ç°×îÈ«µÄä¯ÀÀÆ÷/CSSÑ¡ÔñÆ÷¼æÈÝÐÔ×ܽá

2009Äê2ÔÂ24ÈÕ
£¬Safari 4.0
beta°æÕýʽ·¢²¼£¬Safari´ÓËüµÄ3.2°æ±¾¿ªÊ¼¾ÍÒѾ­Ö§³ÖËùÓеÄCSSÑ¡ÔñÆ÷(°üÀ¨×îеÄCSS3)¡£²»¹ýΪÁË·½±ã´ó¼ÒµÄ¹¤×÷£¬ÏÂÃæÌṩÁË×îаæ
±¾µÄCSSÑ¡ÔñÆ÷ä¯ÀÀÆ÷Ö§³ÖÇé¿ö£¬ÆäÖаüÀ¨×îеÄCSS3ºÍSafari 4.0 BetaµÄÖ§³ÖÇé¿ö¡£¸ÐлEstelle Weyl
µÄ×ܽᡣ
2009Äê6ÔÂ30ÈÕ
£¬FireFox 3.5·¢²¼£¬ÀàËÆSafar ......

IE6 IE7 IE8 FFä¯ÀÀÆ÷µÄCSS¼æÈÝÎÊÌâ(ת)

IE6¡¢IE7¡¢IE8¡¢FFä¯ÀÀÆ÷µÄCSS¼æÈÝÎÊÌ⣬±¾À´ie6¸úffÖ®¼äµÄ¼æÈÝÊǺÜÈÝÒ×½â¾öµÄ¡£¼ÓÉϸöie7»áÂé·³µã£¬ie8µÄ³öÏ־͸üÍ·ÌÛÁË£¬Ô­À´hack ie7µÄ·½·¨ÓÖ²»ÄÜÓÃÁË£¬Ôõô°ìÄØ£¿
»¹ºÃ£¬Î¢ÈíÌṩÁËÕâÑùÒ»¸ö´úÂ룺 °ÑÕâ¶Î´úÂë·Åµ½ÀïÃ棬ÔÚie8ÀïÃæµÄÒ³Ãæ½âÎöÆðÀ´¾Í¸úie7һģһÑùµÄÁË£¬ËùÒÔ£¬»ù±¾ÉÏ¿ÉÒÔÎÞÊÓie8£¬Ê£ÏµĴúÂëÖ»ÐèÒªÕâÑùд¾ ......

CSSÄ£°åÊÇÔõôÁ¶³ÉµÄ

×÷Õß:ÀîÀöæÂ
ÓÊÏ䣺lly219@gmail.com
ÈÕÆÚ£º2009-1-12
Ç°ÑÔ£¨×Ô˵×Ô»°£©
´Ó³õʶCSSµ½ÏÖÔÚÒѾ­5¸öÄêÍ·ÁË¡£´ó¶àÊǶ϶ÏÐøÐøµÄ£¬¿ÉÊǽüÒ»ÄêÀ´½Ó´¥ÆĶ࣬ÉõÓÐһЩЩÌå»á¡£
µÚÒ»´Î½Ó´¥Ö»ÖªµÀfont£¬color£¬background£¬margin£¬paddingµÈ»ù±¾ÖªÊ¶£¬ÄËÖÁÁ¬margin¡¢padding¶¼·Ö²»Çå¸öËùÒÔÈ»¡£
ÔÚµÚÒ»´ÎWeb´ó×÷ÒµÖÐÖªµÀÁËÓÐ&ldq ......

Alert ÖеÄ×ÖÌåͨ¹ýcssÉèÖÃ


Alert{
backgroundColor: #2791DB;
headerColors:#2791DB,#2791DB;
borderThicknessLeft:0;
borderThicknessRight:0;
borderThicknessTop:0;
            font-size:14;
            buttonStyleName: myCustomButtonStyleName;
}
.myCus ......

CSSºÍJS±êÇ©styleÊôÐÔ¶ÔÕÕ±í

CSS ºÍ JavaScript ±êÇ© style ÊôÐÔ¶ÔÕÕ±í£º
ºÐ×Ó±êÇ©ºÍÊôÐÔ¶ÔÕÕ
CSSÓï·¨£¨²»Çø·Ö´óСд£© JavaScriptÓï·¨£¨Çø·Ö´óСд£©
border border
border-bottom borderBottom
border-bottom-color borderBottomColor
border-bottom-style borderBottomStyle
border-bottom-width borderBottomWidth
border-color bor ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ