[响应式]两种图片等比缩放写法

2019-04-15 12:43发布

写法一:
样式:  .pic{padding-bottom:34px;}  .pic,.pic a,.pic img{width: 100%;height: 100%;padding-bottom:34px;}
写法二:
 
  

样式: .item a{display: block;padding-top:46.71%; background-repeat: no-repeat;background-position: center;background-size: cover;}