xian.less 1.2 KB

12345678910111213141516171819
  1. page {margin:0; padding:0;width: 100%;height: 100%;}
  2. // common
  3. .cont_1200 {width: 1200px;margin: 0 auto;max-width: 92%;}
  4. .swiper-button {position: absolute;z-index: 2;width: 38px;height: 38px;border-radius: 50%;background: url(./images/icon_prev.png) no-repeat center;background-size: contain;background-color: #f5f7f7;box-shadow: 0px 4px 20px #00000033;cursor: pointer;}
  5. .swiper-button:hover {background-color: #2452a4;}
  6. .swiper-button.swiper-button-prev1:hover {background-image: url(./images/icon_preva.png);}
  7. .swiper-button.swiper-button-next1:hover {background-image: url(./images/icon_nexta.png);}
  8. .img_box {display: block;/*overflow: hidden;*/}
  9. .img_box {width: 100%;position: relative;padding-top: 100%;box-sizing: border-box;}
  10. /* 图标用 object-fit: contain; */
  11. .img_box image {position: absolute;top: 0;right: 0;bottom: 0;left: 0;margin: auto;width: 100%;height: 100%;object-fit: cover;}
  12. .img_box image {transition: all 0.5s ease;}
  13. .img_box image:hover {transform: scale(1.05);}
  14. .img_box image:hover {transform: scale(1);}
  15. .nowrap {white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
  16. .wrap {display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;text-overflow: ellipsis;overflow: hidden;}