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

ÎÒдdiv+css¹ý³Ì

ÕâÊÇÔ­ÏÈÎÒдµÄ ±¸ÍüµÄ ¾¡¹ÜдµÄºÜÀÃ
frame.css
Java´úÂë
CHARSET "UTF-°Ë";
html,body{
margin: Áãpx;
padding: Áãpx;
height: 100%;
/*font-size: 12px;
color: #666666;
background: #ffffff;*/
}
*{
margin: Áãpx;
padding: Áãpx;
}
/*ÓÉÓÚÓÃÁËÏà¶ÔλÖøñ¾Ö£¬Ó¦·Ö±æÂÊÌ«´óʱ£¬Í¼Æ¬ºÍÎÄ×־ͻᱻÀ­Éì
Ö®ËùÒÔ²ÉÈ¡max-widthÀ´ÉèÁ¢Ò»¸ö×î´óµÄ¿í¶È£¬µ«ÊÇÕâ¸öÊôÐÔIEÁùÒÔ´Î
²»Ö§³Ö£¬Ö®ËùÒÔ×÷ÒԴθü¶¯
!important ΨÓÐFFºÍIEÆßÖ®ÉϲÅÖ§³Ö
_XXXΨÓÐIE6Ö§³Ö
*XXXIEÆß,IEÁù¶¼Ö§³Ö
*+XXXΩ¶ÀIE7Ö§³Ö
Õâô¾Í¿ÉÒÔ°ÑËûÃǽç±ð¿ªÁË
*/
#box{
/*background: red;*/
height: 100% !important;
width: 100% !important;
_width: 1000px;
/*_height: 600px;*/
max-width: 1024px;
min-width: 1000px;
min-height: 500px;
margin: auto;
}
#header{
/*border: ¶þpx solid #ÁãEÁù;*/
/*background-color: navy;*/
height: Ê®%;
}
#header img{
height: 100%;
width: 100%;
}
#tempÒ»{
height: Îå%;
}
#mainMenu{
/*border: ¶þpx solid #C26;*/
/*background-color: purple;*/
height: 90%;
/*margin-bottom: Èýpx;*/
background: url("../images/mainMenu.bmp") repeat;/*ÉèÁ¢±³¾°Í¼Æ¬£¬²¢ÉÏÏÂ×óÓÒÌî³ä*/
}
#space{
height: auto;
}
#sideBar{
/*background: bule;*/
height: 82%;
width: 25%;
/*border: ¶þpx solid #04E;*/
background-color: blue;
position: relative;
overflow: hidden;
float: right;
}
#sideBar iframe{
height: 100%;
width: 100%;
border: none;
}
#content{
/*background: darkblue;*/
height: 82%;
width: 75%;
float: right;
/*border: ¶þpx solid #555;*/
background-color: green;
overflow: hidden;
}
#content iframe{
height: 100%;
width: 100%;
border: none;
}
#footer{
/*border: ¶þpx solid #F14;*/
width: 100%;
clear: both;
/*color: #c¾Åc¾Åc¾Å;
background: #35B;
text-align: center;
font-size: 15px;
font-size: 12px;
color: #c¾Åc¾Åcc;
border-top: Ò»px solid #000;*/
position: absolute;
bottom: Áãpx;
}
#footer img{
vertical-align:middle;/*´¹Ö±ÕýÖÐ*/
}
#footer a {
color: #c¾Åc¾Åc¾Å;


Ïà¹ØÎĵµ£º

ÍøÒ³ÖÆ×÷֪ʶ£ºdiv+css ÃæÊÔÌâÄ¿


1.³¬Á´½Ó·ÃÎʹýºóhoverÑùʽ¾Í²»³öÏÖµÄÎÊÌâ?
±»µã»÷·ÃÎʹýµÄ³¬Á´½ÓÑùʽ²»ÔÚ¾ßÓÐhoverºÍactiveÁË,½â¾ö·½·¨ÊǸıäCSSÊôÐÔµÄÅÅÁÐ˳Ðò: L-V-H-A
2.IE6µÄË«±¶±ß¾àBUG
ÀýÈç:
<style type="text/css">
    body {margin:0}
    div { float:left; margin-left:10px; width:200px; ......

ÕûÀí¼°ÓÅ»¯CSS´úÂëµÄ7¸öÔ­Ôò

¡¡¡¡×÷ΪÍøÒ³Éè¼Æʦ(Ç°¶Ë¹¤³Ìʦ)£¬Äã¿ÉÄÜ»¹¼ÇµÃÔø¾­µÄÄǸöÍøÒ³´óС½¨Òé:Ò»¸öÍøÒ³£¨°üÀ¨HTML¡¢CSS¡¢Javacript¡¢FlashºÍͼ
Ƭ£©¾¡Á¿²»Òª³¬¹ý30KBµÄ´óС£¬Ëæ×Å»¥ÁªÍøµÄÈÕÒæÅÓ´ó£¬ÍøÂç´ø¿íÒ²ÔÚ·ÉËÙ·¢Õ¹£¬ºÜ¶àÉè¼ÆʦÒѾ­²»ÔÙ¿¼ÂÇÕâÌõ30KBµÄÀíÏë×¼Ôò¡£Ëæ×ÅÔ½À´Ô½ÊÜ»¶Ó­µÄ
CSS²¼¾ÖºÍJavascript¶ÔÍøÕ¾Óû§ÌåÑéµÄÇ¿»¯£¬Ê¹µÃÕâÖÖÏÖÏ ......

CSSÍøÒ³²¼¾Ö±àÂëС¼¼ÇÉÕûÀí

1¡¢ul±êÇ©ÔÚMozillaÖÐĬÈÏÊÇÓÐpaddingÖµµÄ£¬¶øÔÚIEÖÐÖ»ÓÐmarginÓÐÖµ¡£ 
2¡¢Í¬Ò»¸öµÄclassÑ¡Ôñ·û¿ÉÒÔÔÚÒ»¸öÎĵµÖÐÖظ´³öÏÖ£¬¶øidÑ¡Ôñ·ûÈ´Ö»ÄܳöÏÖÒ»´Î£»¶ÔÒ»¸ö±êǩͬʱʹÓÃclassºÍid½øÐÐCSS¶¨Ò壬Èç¹û¶¨ÒåÓÐÖظ´£¬idÑ¡Ôñ·û×öµÄ¶¨ÒåÓÐЧ£¬ÊÇÒòΪIDµÄȨֵҪ±ÈCLASS´ó¡£
3¡¢Ò»¸ö¼æÈÝÐÔµ÷Õû(IEºÍMozilla)µÄ±¿°ì·¨£º³õѧ¿É ......

cssÔ²½Çbox±¸Íü

cssÔ²½Çbox±¸Íü <style type="text/css">
div.box{}
div.boxtitle{background-color:#888; height:24px; line-height:24px; vertical-align:middle; padding-left:10px;}
div.boxcontent{ padding:10px; border:1px #888 solid;}
b.r   {display:block;background: #fff} ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ