• CSS3实现简单的幻灯片


    <!DOCTYPE html>
    <html lang="en">
    
    <head>
    <meta charset="UTF-8">
    <title>css3 幻灯片</title>
    <style type="text/css">
    .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;
    }
    }
    </style>
    </head>
    
    <body>
    <div class="ani">
    </div>
    </body>
    
    </html>
  • 相关阅读:
    汉语-词语-转世:百科
    汉语-词语-往生:百科
    中缀表达式值
    车厢调度(train.cpp)
    字符串匹配问题
    计算(calc.cpp)
    2、括弧匹配检验
    2058 括号序列
    7909:统计数字
    1007. 计算余数
  • 原文地址:https://www.cnblogs.com/Iona/p/4718140.html
Copyright © 2020-2023  润新知