我跟着视频写完后动画效果不一样,能把源文件上传吗

来源:2-1 导航页面切换(1)

Intoxicate

2015-04-16 10:38

body{

  font-family:Gerorgia,serif;

  background:#ddd;

  font-weight:400;

  font-size:15px;

  color:#333;

  overflow:hidden;

  -webkit-font-smoothing:antialiased;

}


a{

  text-decoration:none;

  color:#555;

}


.clr{

  width:0;

  height:0;

  overflow:hidden;

  clear:both;

  padding:0;

  margin:0;

}


.st-container{

  width:100%;

  height:100%;

  position:absolute;

  left:0;

  top:0;

  font-family:"Josefin Slab","Myriad Pro",Arial,sans-serif;

}


.st-container > input,

.st-container > a{

  width:20%;

  height:34px;

  line-height:34px;

  position:fixed;

  bottom:0;

}


.st-container > input}{

  opacity:0;

  z-index=1000;

}


.st-container > a{

  z-index:10;

  font-weight:700;

  font-size:16px;

  background:#e23a6e;

  text-align:center;

  color:#fff;

  text-shadow:1px 1px 1px rgba(151,24,64,0.2);

}


#st-control-1,#st-control-1 + a{

  left:0%;

}

#st-control-2,#st-control-2 + a{

  left:20%;

}

#st-control-3,#st-control-3 + a{

  left:40%;

}

#st-control-4,#st-control-4 + a{

  left:60%;

}

#st-control-5,#st-control-5+ a{

  left:80%;

}


.st-container input:checked + a,

.st-container input:checked:hover + a{

  background:#821134;

}


.st-container input:checked + a:after{

  content:"";

  width:0;

  height:0;

  overflow:hidden;

  border:20px solid transparent;

  border-bottom-color:#821134;

  position:absolute;

  bottom:100%;

  left:50%;

  margin-left:-20px;

}


.st-container input:hover + a{

  background:#AD244F;

}


写回答 关注

3回答

  • 阿森纳的会计师
    2015-05-02 18:46:40

    z-index:1000不是z-inde=1000

  • 司想君
    2015-04-20 16:17:16

    你这代码里还有错误呢

  • Perona
    2015-04-16 10:40:18

    好像源文件已经上传了

    司想君

    哪儿呢??看清楚没

    2015-04-20 16:16:10

    共 1 条回复 >

css3实现网页平滑过渡效果

CSS3 打造页面之间的平滑过渡效果,带来神奇的体验

54370 学习 · 388 问题

查看课程

相似问题