[响应式]两种图片等比缩放写法
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;}
打开微信“扫一扫”,打开网页后点击屏幕右上角分享按钮