2013年9月4日 星期三

CSS 兩張圖重疊


<style type="text/css">
<!--
#IMG_1{
 position:absolute;
 top:10px;
 left:10px;
 width:150px;
 height:150px;
 background-color:#53E355;
 z-index:1;
}
#IMG_2{
 position:absolute;
 top:30px;
 left:30px;
 width:150px;
 height:150px;
 background-color:#6DA9E7;
 z-index:2;
}
-->
</style>

<img scr="IMG_1" id="IMG_1">
<img scr="IMG_2" id="IMG_2">



參考資料:
http://www.wibibi.com/info.php?tid=312

沒有留言:

張貼留言