Showing
2 changed files
with
33 additions
and
8 deletions
@@ -88,15 +88,38 @@ | @@ -88,15 +88,38 @@ | ||
88 | background-color: #000000; | 88 | background-color: #000000; |
89 | 89 | ||
90 | .index-channel-list { | 90 | .index-channel-list { |
91 | - padding-top: 50%; | ||
92 | - width: 100%; | ||
93 | - position: absolute; | ||
94 | - top: 0; | 91 | + padding-top: 50%; |
92 | + width: 100%; | ||
93 | + position: absolute; | ||
94 | + top: -230rem / $pxConvertRem; | ||
95 | 95 | ||
96 | - .homestyle { | 96 | + .list-item { |
97 | + display: block; | ||
98 | + position: relative; | ||
99 | + margin: 0 auto 50rem / $pxConvertRem; | ||
100 | + width: 444rem / $pxConvertRem; | ||
101 | + height: 110rem / $pxConvertRem; | ||
102 | + text-align: center; | ||
103 | + font-size: 30rem / $pxConvertRem; | ||
104 | + line-height: 110rem / $pxConvertRem; | ||
105 | + color: #fff; | ||
106 | + background: #000; | ||
107 | + border: 5rem / $pxConvertRem solid #fff; | ||
108 | + font-weight: bold; | ||
109 | + } | ||
110 | + .lighter { | ||
111 | + font-weight: lighter; | ||
112 | + } | ||
113 | + .right-icon { | ||
114 | + position: absolute; | ||
115 | + right: 10rem / $pxConvertRem; | ||
116 | + top: 0; | ||
117 | + font-weight: bold; | ||
118 | + } | ||
119 | + .homestyle { | ||
97 | margin-bottom: 50rem / $pxConvertRem; | 120 | margin-bottom: 50rem / $pxConvertRem; |
98 | width: 287.3rem / $pxConvertRem; | 121 | width: 287.3rem / $pxConvertRem; |
99 | - } | 122 | + } |
100 | } | 123 | } |
101 | } | 124 | } |
102 | } | 125 | } |
@@ -18,8 +18,10 @@ | @@ -18,8 +18,10 @@ | ||
18 | <div class="index-channel"> | 18 | <div class="index-channel"> |
19 | <img class="img" src="{{background}}" alt=""> | 19 | <img class="img" src="{{background}}" alt=""> |
20 | <div class="index-channel-list"> | 20 | <div class="index-channel-list"> |
21 | - <a href="/boys"><img class="homestyle" src="http://img10.static.yhbimg.com/adpic/2015/09/28/18/01bdbd27952eb5f780ac23641e70fd6e12.png"></a> | ||
22 | - <a href="/girls"><img class="homestyle" src="http://img13.static.yhbimg.com/adpic/2015/09/28/18/025a4056cad1c2b6704a5d7c83066a2d25.png"></a> | 21 | + <a href="/boys" class="list-item">男生 <span class="lighter">BOYS</span> <span class="iconfont right-icon"></span></a> |
22 | + <a href="/girls" class="list-item">女生 <span class="lighter">GIRLS</span> <span class="iconfont right-icon"></span></a> | ||
23 | + <a href="/kids" class="list-item">潮童 <span class="lighter">KIDS</span> <span class="iconfont right-icon"></span></a> | ||
24 | + <a href="/lifestyle" class="list-item">创意生活 <span class="lighter">LIFESTYLE</span> <span class="iconfont right-icon"></span></a> | ||
23 | </div> | 25 | </div> |
24 | 26 | ||
25 | </div> | 27 | </div> |
-
Please register or login to post a comment