CSS ÎÄ×ÖÓëÊäÈë¿ò¶ÔÆë
ÔÚ½øÐÐdiv+cssÍøÒ³²¼¾ÖµÄʱºò£¬²»¿É±ÜÃâµÄÐèÒª²åÈëÒ»¶¨µÄ±íµ¥ÔªËØ£¬inputÊÇÆäÖÐ×î³£¼ûµÄÒ»ÖÖ¡£ÎÒÃÇÔÚ²¼¾ÖÖУ¬³£»áÓöµ½Îı¾ÊäÈë¿òÓëͬ´¦Ò»ÐеÄÎı¾²»¶ÔÆëµÄÎÊÌâ¡£Õâ¸öÎÊÌâÉèÖÃinputµÄvertical-align:middleÊôÐÔÀ´½â¾ö¡£
ÎÒÃÇÀ´¿´ÏÂÃæµÄÀý×Ó£¬ÈçºÎ½â¾öÎı¾ÊäÈë¿òÓëÎı¾¶ÔÆëµÄÎÊÌ⣡
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>52css.com</title>
<style type="text/css">
<!--
#a {
height:30px;
border:1px solid #ccc;
}
#b {
margin-top:20px;
height:30px;
border:1px solid #ccc;
}
#a input {
width:200px;
height:30px;
border:1px solid red;
}
#b input {
width:200px;
height:30px;
border:1px solid red;
vertical-align:middle;
}
-->
</style>
</head>
<body>
<div id="a"><input type="text" />52css.com - Div CSS²¼¾Ö ³£¼ûÎÊÌâ</div>
<div id="b"><input type="text" />52css.com - Div CSS²¼¾Ö ³£¼ûÎÊÌâ</div>
</body>
</html>
a ÖÐûÓÐʵÏÖÎÄ×ÖºÍÎı¾¿òµÄ¶ÔÆë
b ÖÐʵÏÖÁ˶ÔÆëµÄЧ¹û£¡
Ïà¹ØÎĵµ£º
¡¾¼ò ½é¡¿
Ϊ·½±ãÕ¾µã°§µ¿,ÌØÌṩcssÂ˾µ´úÂë,ÒÔ±í°§µ¿.ÒÔÏÂΪȫվCSS´úÂë
Ϊ·½±ãÕ¾µã°§µ¿,ÌØÌṩcssÂ˾µ´úÂë,ÒÔ±í°§µ¿.ÒÔÏÂΪȫվCSS´úÂë.
html { filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); }
ʹÓ÷½·¨:Õâ¶Î´úÂë¿ÉÒÔ±äÍøҳΪºÚ°×,½«´úÂë¼Óµ½CSS×¶Ë¾Í¿ÉÒÔʵÏÖËØ×°.½¨ÒéÈ«¹úÕ¾³¤¶¯ÆðÀ´.ÎªÔ ......
ÎÒÔÚwww.c09.com ·¢±íÁËÕâ¸ö±Ê¼Ç²¢ÉÏ´«ÁËÔÖøµÄPDF£¬½ñÌìÓпգ¬×ªµ½BLOGÉÏÀ´¡£
µÚ¾ÅÕ¡¢bugºÍbugÐÞ¸´
9.1 ³£¼ûCSSÎÊÌâ[code]
/*ÒÔÏ´úÂëÊÓͼÈÃËùÓÐ.introµÄ¶ÎÂäÏÔʾ³ÈÉ«µÄ±³¾°*/
#content p{
background-color:transparent;
}
.intro{
background-color:#FEECA9;
}
/*ÒÔÉÏ´úÂëʧ°ÜµÄ ......
¸÷µØ°§µ¿ÓñÊ÷µØÕðÓöÄÑͬ°ûh1
¸÷µØ°§µ¿ÓñÊ÷µØÕðÓöÄÑͬ°û32px
¸÷µØ°§µ¿ÓñÊ÷µØÕðÓöÄÑͬ°ûh2
¸÷µØ°§µ¿ÓñÊ÷µØÕðÓöÄÑͬ°û24px
¸÷µØ°§µ¿ÓñÊ÷µØÕðÓöÄÑͬ°ûh3
¸÷µØ°§µ¿ÓñÊ÷µØÕðÓöÄÑͬ°û18px
¸÷µØ°§µ¿ÓñÊ÷µØÕðÓöÄÑͬ°ûh4
¸÷µØ°§µ¿ÓñÊ÷µØÕðÓöÄÑͬ°û16px
¸÷µØ°§µ¿ÓñÊ÷µØÕðÓöÄÑͬ°ûh5
¸÷µØ°§µ¿ÓñÊ÷µØÕðÓöÄÑͬ°û13px
¸÷µØ°§µ¿Óñ ......
Ò»£ºÖ±½ÓÉèÖÃ
¶þ£º»ÃæÉÏÉèÖãº
È磺
<mx:Style>
TextArea{
font-size:36px
font-weight: bold
}
</mx:Style>
Èý£ºÊ¹ÓÃÍâÖÃÎļþ
<mx:Style source="style.csss"/> ......