HTML5¼¼Êõ

DIV CSS3´¦ÀíÔªËØÖصþ - yueyang2017

×ÖºÅ+ ×÷ÕߣºH5Ö®¼Ò À´Ô´£ºH5Ö®¼Ò 2017-05-22 11:01 ÎÒÒªÆÀÂÛ( )

¢Ù°¸Àý HTML ´úÂ룺 !DOCTYPE html html head lang="en" meta charset="UTF-8" title/title link rel="stylesheet" href="test.css"/ /head body div id="box" div id="top" img src="top.jpg" alt="top"/ /div div id="middle" img src="middle.jpg" alt="m

     

    

 

¢Ù°¸ÀýHTML´úÂ룺

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="test.css"/>
</head>
<body>
<div id="box">
    <div id="top">
        <img src="top.jpg" alt="top"/>
    </div>
    <div id="middle">
        <img src="middle.jpg" alt="middle"/>
    </div>
    <div id="bottom">
        <img src="bottom.jpg" alt="bottom"/>
    </div>
</div>
</body>
</html>

 

¢Ù°¸ÀýCSS´úÂ룺

#box{
    width:500px;
    height:600px;
    border:3px dashed #000;
}
#top{
    position:absolute;
    left:170px;top:170px;
    z-index:3;
}
#middle{
    position:absolute;
    left:100px;top:100px;
    z-index:2;
}
#bottom{
    position:absolute;
    left:40px;top:40px;
    z-index:1;
}

 

ʵÏÖЧ¹û£º

 

¡¡

1.±¾Õ¾×ñÑ­ÐÐÒµ¹æ·¶£¬ÈκÎתÔصĸå¼þ¶¼»áÃ÷È·±ê×¢×÷ÕߺÍÀ´Ô´£»2.±¾Õ¾µÄÔ­´´ÎÄÕ£¬ÇëתÔØʱÎñ±Ø×¢Ã÷ÎÄÕÂ×÷ÕߺÍÀ´Ô´£¬²»×ðÖØÔ­´´µÄÐÐΪÎÒÃǽ«×·¾¿ÔðÈΣ»3.×÷ÕßͶ¸å¿ÉÄܻᾭÎÒÃDZ༭Ð޸Ļò²¹³ä¡£

Ïà¹ØÎÄÕÂ
  • CSS3D¶¯»­ÖÆ×÷Ò»¸ö3dÐýתµÄɸ×Ó - ºÚ°×_»ìãç

    CSS3D¶¯»­ÖÆ×÷Ò»¸ö3dÐýתµÄɸ×Ó - ºÚ°×_»ìãç

    2017-05-20 17:02

  • ¡¾CSS3¡¿loading¶¯»­ - Glunefish

    ¡¾CSS3¡¿loading¶¯»­ - Glunefish

    2017-05-18 13:01

  • CSS3-3DÁ¢·½Ì嶯»­ - Glunefish

    CSS3-3DÁ¢·½Ì嶯»­ - Glunefish

    2017-05-14 18:01

  • Ò»¸öÀõ×ÓÉÏÊÖCSS3¶¯»­ - beidan

    Ò»¸öÀõ×ÓÉÏÊÖCSS3¶¯»­ - beidan

    2017-05-09 13:02

ÍøÓѵãÆÀ
ã