Showing
2 changed files
with
12 additions
and
5 deletions
1 | /** | 1 | /** |
2 | - * 产品打包入口 | 2 | + * 商品详情 |
3 | * @author: liangzhifeng<zhifeng.liang@yoho.cn> | 3 | * @author: liangzhifeng<zhifeng.liang@yoho.cn> |
4 | * @date: 2015/10/20 | 4 | * @date: 2015/10/20 |
5 | */ | 5 | */ |
@@ -19,3 +19,10 @@ goodsSwiper = new Swiper('.banner-swiper', { | @@ -19,3 +19,10 @@ goodsSwiper = new Swiper('.banner-swiper', { | ||
19 | nextButton: '.swiper-button-next', | 19 | nextButton: '.swiper-button-next', |
20 | prevButton: '.swiper-button-prev' | 20 | prevButton: '.swiper-button-prev' |
21 | }); | 21 | }); |
22 | + | ||
23 | + | ||
24 | +$('#iframe').load(function() { | ||
25 | + | ||
26 | + var mainheight = $(this).contents().find('body').height() + 30; | ||
27 | + $(this).height(mainheight); | ||
28 | +}); |
@@ -48,14 +48,14 @@ | @@ -48,14 +48,14 @@ | ||
48 | } | 48 | } |
49 | } | 49 | } |
50 | 50 | ||
51 | - .detailName { | 51 | + .goodsName { |
52 | font-size: 28rem / $pxConvertRem; | 52 | font-size: 28rem / $pxConvertRem; |
53 | color: #222222; | 53 | color: #222222; |
54 | padding-bottom: 6px; | 54 | padding-bottom: 6px; |
55 | text-align: center; | 55 | text-align: center; |
56 | } | 56 | } |
57 | 57 | ||
58 | - .detailTitle { | 58 | + .goodsTitle { |
59 | font-size: 36rem / $pxConvertRem; | 59 | font-size: 36rem / $pxConvertRem; |
60 | text-align: center; | 60 | text-align: center; |
61 | padding-bottom: 2px; | 61 | padding-bottom: 2px; |
@@ -68,7 +68,7 @@ | @@ -68,7 +68,7 @@ | ||
68 | padding-bottom: 15px; | 68 | padding-bottom: 15px; |
69 | } | 69 | } |
70 | 70 | ||
71 | - .detailToBuy { | 71 | + .goToBuy { |
72 | padding: 0 10px; | 72 | padding: 0 10px; |
73 | margin-bottom: 20px; | 73 | margin-bottom: 20px; |
74 | text-align: center; | 74 | text-align: center; |
@@ -115,7 +115,7 @@ | @@ -115,7 +115,7 @@ | ||
115 | } | 115 | } |
116 | } | 116 | } |
117 | 117 | ||
118 | - .detailToShop { | 118 | + .goToShop { |
119 | margin: 0 10px 20px; | 119 | margin: 0 10px 20px; |
120 | padding: 10px; | 120 | padding: 10px; |
121 | height: 47px; | 121 | height: 47px; |
-
Please register or login to post a comment