zoukankan      html  css  js  c++  java
  • 视差滚动

    <!DOCTYPE html>
    <html lang="en">
      <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
        <style>
          html,
          body {
            margin: 0;
            padding: 0;
             100%;
            height: 100%;
          }
          .img {
             100%;
            height: 75%;
            color: #fff;
            font-size: 100px;
            display: flex;
            justify-content: center;
            align-items: center;
    
            background-size: cover;
            background-attachment: fixed;
            background-position: center;
            /* background-repeat: no-repeat; */
    
            box-sizing: border-box;
            border: 10px solid #000;
          }
          .img:nth-child(1) {
            background-image: url("./img/img1.jpg");
          }
          .img:nth-child(2) {
            background-image: url("./img/img2.jpg");
          }
          .img:nth-child(3) {
            background-image: url("./img/img3.jpg");
          }
          .img:nth-child(4) {
            background-image: url("./img/img4.jpg");
          }
          .img:nth-child(5) {
            background-image: url("./img/img5.jpg");
          }
          .img:nth-child(6) {
            background-image: url("./img/img6.jpg");
          }
        </style>
      </head>
      <body>
        <div class="img">IMG1</div>
        <div class="img">IMG2</div>
        <div class="img">IMG3</div>
        <div class="img">IMG4</div>
        <div class="img">IMG5</div>
        <div class="img">IMG6</div>
        <script></script>
      </body>
    </html>
    
    
  • 相关阅读:
    Tsql 获取服务器信息
    数据字典生成脚本 【转载】
    c# winform文本框数字,数值校验
    ReentrantLock和AbstractQueuedSynchronizer的分析
    多线程
    前缀和与差分数组
    链表
    堆(优先队列)
    排序算法
    二分查找(递归和非递归)
  • 原文地址:https://www.cnblogs.com/pengnima/p/13111978.html
Copyright © 2011-2022 走看看