博客來網路書店查詢

書名

博客來網路書店查詢

星期二, 3月 11, 2014

z-index內的css範例

#redblock {
  z-index: 1;
  position:
  absolute;
  width:80px;
  height:100px;
  top:20px;
  left:20px;
  border: 1px solid #FFF;
  background-color: red;
}

#yellowblock {
  z-index: 3;
  position: absolute;
  width:100px;
  height:80px;
  top:50px;
  left:50px;
  border: 1px solid #FFF;
  background-color: yellow;
}
#blueblock {
  z-index: 2;
  position: absolute;
  width:120px;
  height:180px;
  top:80px;
  left:90px;
  border: 1px solid #FFF;
  background-color: blue;
}

沒有留言: