Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
2 changed files
with
8 additions
and
5 deletions
@@ -32,11 +32,13 @@ | @@ -32,11 +32,13 @@ | ||
32 | 32 | ||
33 | .nav-icon, .nav-img { | 33 | .nav-icon, .nav-img { |
34 | position: absolute; | 34 | position: absolute; |
35 | - width: 48rem / $pxConvertRem; | ||
36 | - height: 48rem / $pxConvertRem; | 35 | + width: 60rem / $pxConvertRem; |
36 | + height: 60rem / $pxConvertRem; | ||
37 | top: 50%; | 37 | top: 50%; |
38 | - margin-top: -24rem / $pxConvertRem; | ||
39 | - left: 30rem / $pxConvertRem; | 38 | + margin-top: -30rem / $pxConvertRem; |
39 | + left: 24rem / $pxConvertRem; | ||
40 | + background: no-repeat left center; | ||
41 | + background-size: 100% 100%; | ||
40 | } | 42 | } |
41 | 43 | ||
42 | .enter-subnav { | 44 | .enter-subnav { |
@@ -9,7 +9,8 @@ | @@ -9,7 +9,8 @@ | ||
9 | <a href="javascript:;"> | 9 | <a href="javascript:;"> |
10 | {{/ url}} | 10 | {{/ url}} |
11 | {{# img}} | 11 | {{# img}} |
12 | - <img class="nav-img" src="{{.}}" alt=""> | 12 | + <!-- <img class="nav-img" src="{{.}}" alt=""> --> |
13 | + <span class="nav-img" style="background-image: url({{.}})"></span> | ||
13 | {{/ img}} | 14 | {{/ img}} |
14 | {{^ img}} | 15 | {{^ img}} |
15 | <i class="nav-icon"></i> | 16 | <i class="nav-icon"></i> |
-
Please register or login to post a comment