Authored by yyq

style

@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 <h1 class="main-title">商品大全</h1> 5 <h1 class="main-title">商品大全</h1>
6 <ul class="list-block clearfix"> 6 <ul class="list-block clearfix">
7 {{# chanpinList}} 7 {{# chanpinList}}
8 - <li><a href="/chanpin/{{id}}.html">{{keyword}}</a></li> 8 + <li><a href="/chanpin/{{id}}.html" title="{{keyword}}">{{keyword}}</a></li>
9 {{/ chanpinList}} 9 {{/ chanpinList}}
10 </ul> 10 </ul>
11 </div> 11 </div>
@@ -13,8 +13,8 @@ @@ -13,8 +13,8 @@
13 {{#if hotBrands}} 13 {{#if hotBrands}}
14 <div class="hot-brands clearfix"> 14 <div class="hot-brands clearfix">
15 {{# hotBrands}} 15 {{# hotBrands}}
16 - <a href="{{url}}" alt="{{title}}">  
17 - <img src="{{image image}}" title="{{title}}"> 16 + <a href="{{url}}" title="{{title}}">
  17 + <img src="{{image image}}" alt="{{title}}">
18 </a> 18 </a>
19 {{/ hotBrands}} 19 {{/ hotBrands}}
20 </div> 20 </div>
@@ -34,7 +34,14 @@ @@ -34,7 +34,14 @@
34 } 34 }
35 35
36 a { 36 a {
  37 + max-width: 90%;
  38 + line-height: 1.2;
37 color: #666; 39 color: #666;
  40 + overflow: hidden;
  41 + text-overflow: ellipsis;
  42 + white-space: nowrap;
  43 + display: inline-block;
  44 + vertical-align: text-bottom;
38 } 45 }
39 } 46 }
40 47