问答详情
源自:9-1 CSS3 Keyframes介绍

关于通过帧数轮播图片的问题。

请问这个图片为什么不显示,我尝试了很多回,都没有效果。

@keyframes changecolor{
  0%{
    background-image: url(/static/img/common/touch-icon-ipad.png);
  }
  20%{
    background-image: url(/static/img/common/touch-icon-iphone-retina.png);

  }
  100%{
      background-image: url(/static/img/common/touch-icon-ipad-retina.png);
  }
 
}

 div {
  width: 300px;
  height: 200px;
 
  background-image:url(/static/img/common/touch-icon-ipad-retina.png);
  color:#fff;
  margin: 20px auto;
     
 
}
div:hover {
  animation: changecolor 5s ease-out .2s;
}


提问者:qq_骑行夏威夷_1 2018-07-16 09:14

个回答

  • 初pl
    2018-10-31 11:19:38

    https://img2.mukewang.com/5bd91f110001665204700279.jpg

    https://img1.mukewang.com/5bd91f110001c7da12990867.jpg

    我的可以 你看看是不是路径问题哦

  • wdsjbnzl
    2018-07-16 10:24:52

    div {

    背景图片改为·%0的图片

    }