이 글은 타오바오 매장의 회전식 이미지에 대한 HTML 코드의 구성 및 부분 조정을 소개하는 PHP 중국어 웹사이트에서 제공됩니다.
1. 기본 코드
<p class="J_TWidget" data-widget-config="{'effect': 'fade', 'circular': true ,'contentCls':'taobaoux'}" data-widget-type="Tabs" style="height:545px;overflow:hidden;"> <p class="taobaoux" style="height:550px;"> <p class="footer-more-trigger" style="width:1920px;height:550px;top:auto;padding:0px;border:none;left:50%;"> <p class="footer-more-trigger" style="width:1920px;height:550px;padding:0px;border:none;left:-960px;"> <p data-widget-config="{'contentCls': 'taobaoux-com','navCls': 'bbs-taobaoux-com','effect': 'scrollx','easing': 'easeOutStrong','prevBtnCls':'prev1920','nextBtnCls':'next1920','autoplay': true,'viewSize':[1920],'circular': true}" data-widget-type="Carousel" class="J_TWidget"> <p class="J_TWidget" data-widget-config="{'trigger':'.ux1920','align':{'node':'.ux1920','offset':[-500,0],'points':['cc','cc']}}" data-widget-type="Popup" style="display:none;"> <p class="prev1920" style="font-size:100px;cursor:pointer;opacity:0.5;color:#f00;"><</p> </p> <p class="J_TWidget" data-widget-config="{'trigger':'.ux1920','align':{'node':'.ux1920','offset':[500,0],'points':['cc','cc']}}" data-widget-type="Popup" style="display:none;"> <p class="next1920" style="font-size:100px;cursor:pointer;opacity:0.5;color:#f00;">></p> </p> <p style="height:550px;width:1920px;overflow:hidden;padding:0px;margin:0px;" class="ux1920"> <ul class="taobaoux-com" style="height:550px;width:1920px;padding:0px;margin:0px;"> <li style="width:1920px;height:550px;padding:0px;margin:0px;"> <a target="_blank" href="http://tbux.taobao.com/" style="padding:0px;margin:0px;"> <img src="http://demo.taobaoux.com/Carousel/1920/1920.jpg" width="1920px" height="550px" border="0px"></a></li> <li style="width:1920px;height:550px;padding:0px;margin:0px;"> <a target="_blank" href="http://tbux.taobao.com/" style="padding:0px;margin:0px;"> <img src="http://demo.taobaoux.com/Carousel/1920/1920_2.jpg" width="1920px" height="550px" border="0px"></a></li> <li style="width:1920px;height:550px;padding:0px;margin:0px;"> <a target="_blank" href="http://tbux.taobao.com/" style="padding:0px;margin:0px;"> <img src="http://demo.taobaoux.com/Carousel/1920/1920_3.jpg" width="1920px" height="550px" border="0px"></a></li> <li style="width:1920px;height:550px;padding:0px;margin:0px;"> <a target="_blank" href="http://tbux.taobao.com/" style="padding:0px;margin:0px;"> <img src="http://demo.taobaoux.com/Carousel/1920/1920_2.jpg" width="1920px" height="550px" border="0px"></a></li> <li style="width:1920px;height:550px;padding:0px;margin:0px;"> <a target="_blank" href="http://tbux.taobao.com/" style="padding:0px;margin:0px;"> <img src="http://demo.taobaoux.com/Carousel/1920/1920_3.jpg" width="1920px" height="550px" border="0px"></a></li> </ul> </p> <p class="footer-more-trigger" style="padding:0px;border:none;left:50%;"> <p class="footer-more-trigger" style="width:1920px;height:50px;padding:0px;border:none;left:-960px;background: url(http://demo.taobaoux.com/Carousel/Carousel_bg.png) repeat;top:505px;"> <ul class="bbs-taobaoux-com" style="width:950px;height:50px;margin:0 auto;text-align: center;"> <li style="display: inline;margin: 0 5px;cursor:pointer;line-height: 50px;"> <img src="http://demo.taobaoux.com/Carousel/1920/1920.jpg" width="120px" height="39px" border="0px" style="vertical-align:middle;margin:5px 0;" /></li> <li style="display: inline;margin: 0 5px;cursor:pointer;line-height: 50px;"> <img src="http://demo.taobaoux.com/Carousel/1920/1920_2.jpg" width="120px" height="39px" border="0px" style="vertical-align:middle;margin:5px 0;" /></li> <li style="display: inline;margin: 0 5px;cursor:pointer;line-height: 50px;"> <img src="http://demo.taobaoux.com/Carousel/1920/1920_3.jpg" width="120px" height="39px" border="0px" style="vertical-align:middle;margin:5px 0;" /></li> <li style="display: inline;margin: 0 5px;cursor:pointer;line-height: 50px;"> <img src="http://demo.taobaoux.com/Carousel/1920/1920_2.jpg" width="120px" height="39px" border="0px" style="vertical-align:middle;margin:5px 0;" /></li> <li style="display: inline;margin: 0 5px;cursor:pointer;line-height: 50px;"> <img src="http://demo.taobaoux.com/Carousel/1920/1920_3.jpg" width="120px" height="39px" border="0px" style="vertical-align:middle;margin:5px 0;" /></li> </ul> </p> </p> </p> </p> </p> </p> <ul class="ks-switchable-nav" style="display:none;"></ul> </p>
1. 왼쪽 화살표 수정
<p class="prev1920" style="font-size:100px;cursor:pointer;opacity:0.5;color:#f00;"><</p> <p class="prev1920" style="width:97px;height:97px;"><img src="左箭头图片地址" /> </p>
2. 오른쪽 화살표 수정:
<p class="next1920" style="font-size:100px;cursor:pointer;opacity:0.5;color:#f00;">></p>
다음:
<p class="next1920" style="width:97px;height:97px;"> <img src="右箭头图片地址" /></p>
3. 화살표는 다음과 같습니다. 모두에 왼쪽:
<
이
<p class="J_TWidget" data-widget-config="{'trigger':'.ux1920','align':{'node':'.ux1920','offset':[-500,0],'points':['cc','cc']}}" data-widget-type="Popup" style="display:none;"> <p class="prev1920" style="width:97px;height:97px;margin-left: 97px;"> <img src="左箭头图片地址" /></p> <p class="next1920" style="width:97px;height:97px;"> <img src="右箭头图片地址" /></p> </p>
4로 수정되었습니다. 아래 미리보기 이미지가 숫자로 변경되었습니다.
<p class="footer-more-trigger" style="width:1920px;height:50px;padding:0px;border:none;left:-960px;background: url(http://demo.taobaoux.com/Carousel/Carousel_bg.png) repeat;top:505px;"> <ul class="bbs-taobaoux-com" style="width:950px;height:50px;margin:0 auto;text-align: center;"> <li style="display: inline;margin: 0 5px;cursor:pointer;line-height: 50px;"> <img src="http://demo.taobaoux.com/Carousel/1920/1920.jpg" width="120px" height="39px" border="0px" style="vertical-align:middle;margin:5px 0;" /></li> <li style="display: inline;margin: 0 5px;cursor:pointer;line-height: 50px;"> <img src="http://demo.taobaoux.com/Carousel/1920/1920_2.jpg" width="120px" height="39px" border="0px" style="vertical-align:middle;margin:5px 0;" /></li> <li style="display: inline;margin: 0 5px;cursor:pointer;line-height: 50px;"> <img src="http://demo.taobaoux.com/Carousel/1920/1920_3.jpg" width="120px" height="39px" border="0px" style="vertical-align:middle;margin:5px 0;" /></li> <li style="display: inline;margin: 0 5px;cursor:pointer;line-height: 50px;"> <img src="http://demo.taobaoux.com/Carousel/1920/1920_2.jpg" width="120px" height="39px" border="0px" style="vertical-align:middle;margin:5px 0;" /></li> <li style="display: inline;margin: 0 5px;cursor:pointer;line-height: 50px;"> <img src="http://demo.taobaoux.com/Carousel/1920/1920_3.jpg" width="120px" height="39px" border="0px" style="vertical-align:middle;margin:5px 0;" /></li> </ul> </p>
가
<p class="footer-more-trigger" style="width:1920px;height:30px;padding:0px;border:none;left:-960px;background: url(http://demo.taobaoux.com/Carousel/Carousel_bg.png) repeat;top:525px;"> <ul class="bbs-taobaoux-com" style="width:950px;height:30px;margin:0 auto;text-align: center;"> <li style="display: inline;margin: 0 5px;padding: 5px;opacity: 0.5;cursor:pointer;color:#000;background:#fff;line-height:30px;">1</li> <li style="display: inline;margin: 0 5px;padding: 5px;opacity: 0.5;cursor:pointer;color:#000;background:#fff;line-height:30px;">2</li> <li style="display: inline;margin: 0 5px;padding: 5px;opacity: 0.5;cursor:pointer;color:#000;background:#fff;line-height:30px;">3</li> <li style="display: inline;margin: 0 5px;padding: 5px;opacity: 0.5;cursor:pointer;color:#000;background:#fff;line-height:30px;">4</li> <li style="display: inline;margin: 0 5px;padding: 5px;opacity: 0.5;cursor:pointer;color:#000;background:#fff;line-height:30px;">5</li> </ul> </p>
5로 변경되었습니다.
<p class="footer-more-trigger" style="width:1920px;height:50px;padding:0px;border:none;left:-960px;background: url(http://demo.taobaoux.com/Carousel/Carousel_bg.png) repeat;top:505px;">
background: url(http://demo.taobaoux.com/Carousel/Carousel_bg.png) repeat;
6. 스크롤 애니메이션 효과 수정:
'효과' 찾기: 'scrollx' 스크롤x를 스크롤로 변경하여 수직으로 스크롤하고 페이드 인 및 페이드 아웃으로 변경합니다.
7. 스크롤 애니메이션 속도 수정:
'효과' 뒤에 '기간' 속성 추가: 'scrollx': 0.5,
기본값은 0.5입니다. 스크롤 속도를 높이려면 0.5를 0.1로 변경하세요. 스크롤이 필요합니다. 속도가 느린 경우 0.5를 늘리고 0.9 미만으로 변경하는 것이 좋습니다.
글 주소: http://www.php.cn/div-tutorial-377487.html
프로그래밍을 배우려면 PHP 중국어 웹사이트 www.php.cn
를 방문하세요.
위 내용은 타오바오 상점 캐러셀 이미지 HTML 코드 구성 및 부분 조정의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!