前端作业(15)

咳咳,我的可能跟pink老师的有一点点不一样,比如:第二个轮播图我的是直接截了一整个(其实是一开始准备材料的时候,以为跟之前一样,所以就截了一整个的),另外,大家在选择路径的时候注意一下自己所存放的文件位置来设,免得路径错误

index.html




    
    
    
    黑马面面项目
    
    
    


    
黑马面面

就业指导

更多>>

充电学习

更多>>

index.less

body {
    min-width: 320px;
    max-width: 750px;
    margin: 0 auto;
    background-color: #f2f2f2;
  }
  a {
    text-decoration: none;
    color: #707070;
  }
  /* 当约束屏幕大于750px时 html字体大小就可不用变化 */
  @media screen and (min-width: 750px) {
    html {
      font-size: 37.5px !important;
    }
  }
  .wrap {
    background-color: #fff;
    padding: 1.1467rem;
  }
  .header {
    height: 2.1333rem;
    border-bottom: 1px solid #eaeaea;
    text-align: center;
    line-height: 2.1333rem;
    font-size: .9067rem;
    color: #1c1c1c;
  }

  .nav {
    display: flex;
    // 显示不开就换行
    flex-wrap: wrap;
    padding: 1.2rem 0 1.6rem 0; 
    .item {
      display: flex;
      width: 33.33%;
      // 纵向显示
      flex-direction: column;
      // 水平居中
      align-items: center;
      img {
        width: 3.7067rem;
        height: 3.7067rem;
      }
      span {
        font-size: .6667rem;
        color: #707070;
      }
      // 选择前面的三个
      &:nth-child(-n+3) {
        margin-bottom: 1.6533rem;
      }
    }
  }

  .go {
    margin: 0 .2667rem 0 .48rem;
    img {     
    width: 20.9867rem;
    }
  }
  .content {
    padding: 1.0667rem .64rem;
    background-color: #fff;
    margin-top: .2667rem;
    .con-hd {
      display: flex;
      justify-content: space-between;
      height: 1.0133rem;
      line-height: 1.0133rem;
      h4 {
        margin: 0;
        font-size: .7467rem;
        color: #333;
        .icon {
          // display: inline-block;
          width: 1.0133rem;
          height: 1.0133rem;
          vertical-align: middle;
        }
      }
      .more {
        font-size: .5867rem;
        color: #999;
      }
    }
  }
  .get_job_focus {
    position: relative;
    margin-top: 1.2667rem;
    
     .swiper-container {
       // 据需求定width:540px
       width: 14.4rem;
       height: 100%;
     }
    
    .swiper-slide {
      text-align: center;
      font-size: 18px;
      background: #fff;

      /* Center slide text vertically */
      display: -webkit-box;
      display: -ms-flexbox;
      display: -webkit-flex;
      display: flex;
      // 竖向显示
      flex-direction: column;
      /* Center slide text vertically */
      display: -webkit-box;
      display: -ms-flexbox;
      display: -webkit-flex;
      display: flex;
      -webkit-box-pack: center;
      -ms-flex-pack: center;
      -webkit-justify-content: center;
      justify-content: center;
      -webkit-box-align: center;
      -ms-flex-align: center;
      -webkit-align-items: center;
      align-items: center;
	    transition: 300ms;
      // 其余兄弟0.8
	    transform: scale(0.8);
      // 透明度
      opacity: 0.4;
    a {
      width: 9.0133rem;
      height: 10.0267rem;
      img {
        width: 100%;
        height: 100%;
      }
    }
    p {
      width: 9.0133rem;
      font-size: .6667rem;
      margin-top: .64rem;
      color: #333;
    }
    }
    // 当前选中的图 中间的那个
	.swiper-slide-active,
  .swiper-slide-duplicate-active {
      transform: scale(1);
      z-index: 99;
      opacity: 1;
	}
  .swiper-button-next,
  .swiper-button-prev {
    outline: none;
    &::after {
      font-size: 1.0667rem;
      color: #333;
    }
  }
}
.study_con {
  padding-bottom: 3.7333rem;
}
  // 学习模块
.study {
   margin-top: 1.2667rem;
  .mySwiper {
    padding: .2667rem;
  }
  .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    width: 7.7333rem;
    height: 9.0667rem;
    background-color: #fff;
    border-radius: .2667rem;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.1);
    img {
      width: 9.7333rem;
      height: 9.0667rem;
    }
  }
}
.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2.9333rem;

  z-index: 1;
  display: flex;
  padding: .5333rem;
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  .item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    img {
      width: 2.04rem;
      height: 2.0933rem;
    }
    p {
      font-size: .5867rem;
      color: #666;
      margin-top: .2667rem;
    }
  }
}

效果:

黑马面面项目作业

你可能感兴趣的:(前端,java,servlet,html5,css3)