Authored by 梁志锋

modify css

... ... @@ -56,20 +56,15 @@
box-sizing: border-box;
float: left;
width: 213.3rem / $pxConvertRem;
height: 213.3rem / $pxConvertRem;
overflow: hidden;
.img-wrapper {
position: absolute;
top: 0;
left: 0;
z-index: 0;
display: block;
width: 213.3rem / $pxConvertRem;
height: 213.3rem / $pxConvertRem;
img {
width: 213.3rem / $pxConvertRem;
height: 213.3rem / $pxConvertRem;
max-width: 100%;
max-height: 100%;
}
}
... ... @@ -83,20 +78,14 @@
box-sizing: border-box;
float: left;
width: 320rem / $pxConvertRem;
height: 320rem / $pxConvertRem;
overflow: hidden;
.img-wrapper {
position: absolute;
top: 0;
left: 0;
z-index: 0;
display: block;
width: 320rem / $pxConvertRem;
height: 320rem / $pxConvertRem;
img {
width: 320rem / $pxConvertRem;
height: 320rem / $pxConvertRem;
max-width: 100%;
max-height: 100%;
}
}
... ...
... ... @@ -6,9 +6,9 @@
{{/ title}}
{{# list}}
<div class="newfestival-recom-item clearfix">
<div class="newfestival-recom-item">
<a href="{{url}}" class="img-wrapper">
<img class="lazy" data-original="{{src}}" alt="">
<img class="lazy" data-original="{{src}}" alt="" style="display:block">
</a>
</div>
{{/ list}}
... ...