Explorar el Código

轮播图修复

git-svn-id: svn://svn7.apicloud.com/A6007457911931/%E5%9C%88%E5%A4%9A%E5%A4%9A@655 0e1a2743-8d03-4e5a-a60c-7e26af42b145
1149931599@qq.com hace 4 años
padre
commit
b06566de1b
Se han modificado 1 ficheros con 8 adiciones y 8 borrados
  1. 8 8
      html/frame0.html

+ 8 - 8
html/frame0.html

@@ -444,7 +444,7 @@
 										"uploads/home/adv/" + item.adv_code + '"/></div>');
 								}
 							} else {
-								$(".swiper-wrapper").append('<div class="swiper-slide" type="0" keyid="0"><img src="' + siteurl +
+								$(".swiper-wrapper").append('<div class="swiper-slide" type="0" keyid="0"><img style="width:100%" src="' + siteurl +
 									"uploads/home/adv/" + item.adv_code + '"/></div>');
 							}
 						});
@@ -458,13 +458,13 @@
 							pagination: {
 								el: '.swiper-pagination',
 							},
-							on: {
-								transitionEnd: function() {
-									var tempSlideWidth = $(".swiper-slide").width();
-									$(".swiper-slide").css("width", tempSlideWidth);
-									$(".swiper-slide-active").css("width", (tempSlideWidth + 1));
-								}
-							}
+							// on: {
+							// 	transitionEnd: function() {
+							// 		var tempSlideWidth = $(".swiper-slide").width();
+							// 		$(".swiper-slide").css("width", tempSlideWidth);
+							// 		$(".swiper-slide-active").css("width", (tempSlideWidth + 1));
+							// 	}
+							// }
 						});
 					} else {
 						errcode(datas, datas.code);