Showing
2 changed files
with
18 additions
and
13 deletions
@@ -1863,19 +1863,24 @@ $(function() { | @@ -1863,19 +1863,24 @@ $(function() { | ||
1863 | }); | 1863 | }); |
1864 | 1864 | ||
1865 | // 调整模特卡的间距 | 1865 | // 调整模特卡的间距 |
1866 | - $('.model-card-item .item .key').each(function(i) { | ||
1867 | - var index = i + 1; | 1866 | + $('.model-card-item').each(function() { |
1867 | + var $this = $(this); | ||
1868 | 1868 | ||
1869 | - if (index % 3 === 2) { | ||
1870 | - $(this).css({ | ||
1871 | - 'padding-left': '30px' | ||
1872 | - }); | ||
1873 | - } else if (index % 3 === 0) { | ||
1874 | - $(this).css({ | ||
1875 | - 'padding-left': '50px' | ||
1876 | - }); | ||
1877 | - } | 1869 | + $this.find('.item .key').each(function(i) { |
1870 | + var index = i + 1; | ||
1871 | + | ||
1872 | + if (index % 3 === 2) { | ||
1873 | + $(this).css({ | ||
1874 | + 'padding-left': '40px' | ||
1875 | + }); | ||
1876 | + } else if (index % 3 === 0) { | ||
1877 | + $(this).css({ | ||
1878 | + 'padding-left': '60px' | ||
1879 | + }); | ||
1880 | + } | ||
1881 | + }); | ||
1878 | }); | 1882 | }); |
1883 | + | ||
1879 | }); | 1884 | }); |
1880 | 1885 | ||
1881 | yasAtBottom.yasBottom(); | 1886 | yasAtBottom.yasBottom(); |
@@ -267,7 +267,7 @@ | @@ -267,7 +267,7 @@ | ||
267 | .price-row { | 267 | .price-row { |
268 | display: inline-block; | 268 | display: inline-block; |
269 | height: 20px; | 269 | height: 20px; |
270 | - margin-bottom: 12px; | 270 | + margin-bottom: 10px; |
271 | } | 271 | } |
272 | 272 | ||
273 | .promotioGn-price { | 273 | .promotioGn-price { |
@@ -1133,7 +1133,7 @@ | @@ -1133,7 +1133,7 @@ | ||
1133 | 1133 | ||
1134 | .text { | 1134 | .text { |
1135 | float: left; | 1135 | float: left; |
1136 | - width: 538px; | 1136 | + width: 530px; |
1137 | padding-left: 40px; | 1137 | padding-left: 40px; |
1138 | margin-left: 240px; | 1138 | margin-left: 240px; |
1139 | line-height: 24px; | 1139 | line-height: 24px; |
-
Please register or login to post a comment