星期二, 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;
}

星期四, 3月 06, 2014

position:static

#div-1 {
 width:400px;
 background-color:#000;
 color:#fff;
 position:static;
}
#div-2 {
 width:300px;
 background-color:red;
 color:#fff;
 position:static;
}

#css3demo

#css3demo {
border: 1px solid #696;
padding: 60px 0;
text-align: center; width: 200px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
-webkit-box-shadow: #666 0px 2px 3px;
-moz-box-shadow: #666 0px 2px 3px;
box-shadow: #666 0px 2px 3px;
background: #EEFF99;
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#EEFF99), to(#66EE33));
background: -moz-linear-gradient(#EEFF99, #66EE33);
-pie-background: linear-gradient(#EEFF99, #66EE33);
behavior: url(PIE.htc);
}

星期二, 3月 04, 2014

CSS-SCript新莊分校第一天上課範例檔案

CSS-SCript新莊分校第一天上課範例檔案
範例