CSS3实现简单的幻灯片_html/css_WEB-ITnose

css3 幻灯片.ani {width: 480px;height: 320px;margin: 50px auto;overflow: hidden;box-shadow: 0 0 5px rgba(0, 0, 0, 1);background-size: cover;background-position: center;-webkit-animation-name: "loops";-webkit-animation-duration:20s;-webkit-animation-iteration-count: infinite;}@-webkit-keyframes "loops" {0% {background: url('img/1.jpg') no-repeat;}25% {background: url('img/2.jpg') no-repeat;}50% {background: url('img/3.jpg') no-repeat;}75% {background: url('img/4.jpg') no-repeat;}100% {background: url('img/5.jpg') no-repeat;}}

登录后复制

 

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至253000106@qq.com举报,一经查实,本站将立刻删除。

发布者:PHP中文网,转转请注明出处:https://www.chuangxiangniao.com/p/3104241.html

(0)
上一篇 2025年3月29日 08:27:18
下一篇 2025年3月29日 08:27:26

AD推荐 黄金广告位招租... 更多推荐

发表回复

登录后才能评论