栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

图片切换的代码块

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

图片切换的代码块

  
    
      
      
    
     
      
    
    
      
    
    
      
    
    
      
    
    
      
    
    
      
    
    
      
    
  




    .index-container {
  width: 1200px;
  min-height: 500px;
  margin: auto;
  padding-bottom: 135px;

  div {
    width: 1200px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 10px;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000;

    // line-height: 82px;
    // height: 85px;
    img {
      height: 70px;
      // transition: all 5s;
    }

    .img {
      width: 1200px;
      // height:648px ;
      height: 0px;
      object-fit: cover;
      padding: 0 47.5px;
      margin: 0 auto;
      box-sizing: border-box;
      transition: all 0.7s ease 0s;
      transform: translate3d(0, 0, 0);
      backface-visibility: hidden;
      perspective: 1000;
    }
  }

  .one {
    background-image: url(https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/one.png);

    .img {
      height: 648px;
      display: block;
    }
  }

  .two {
    background-image: url(https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/two.png);
  }

  .three {
    background-image: url(https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/three.png);
  }

  .four {
    background-image: url(https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/four.png);
  }

  .five {
    background-image: url(https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/five.png);
  }

  .six {
    background-image: url(https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/six.png);
  }

  .seven {
    background-image: url(https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/seven.png);
  }

  .eight {
    background-image: url(https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/eight.png);
  }
}

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/269456.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号