Authored by 姜枫

处理商品展示

1 -<div class="goods-area"> 1 +<div class="goods-area clearfix">
2 {{#each products}} 2 {{#each products}}
3 <div class="goods" data-id="{{productId}}" data-url="{{url}}"> 3 <div class="goods" data-id="{{productId}}" data-url="{{url}}">
4 <div class="goods-img"> 4 <div class="goods-img">
@@ -247,7 +247,7 @@ @@ -247,7 +247,7 @@
247 .goods { 247 .goods {
248 margin: 10px 0; 248 margin: 10px 0;
249 padding: 10px; 249 padding: 10px;
250 - display: inline-block; 250 + float: left;
251 text-align: center; 251 text-align: center;
252 border: 2px solid #fff; 252 border: 2px solid #fff;
253 cursor: pointer; 253 cursor: pointer;