Home > Web Front-end > HTML Tutorial > Taobao shop carousel image html code organization and partial adjustment

Taobao shop carousel image html code organization and partial adjustment

PHP中文网
Release: 2017-08-26 17:35:05
Original
3244 people have browsed it

This article is provided by php Chinese website, which introduces the organization and partial adjustment of the html code for carousel images in Taobao stores.

1. Main code

<p class="J_TWidget" data-widget-config="{&#39;effect&#39;: &#39;fade&#39;, &#39;circular&#39;: true ,&#39;contentCls&#39;:&#39;taobaoux&#39;}" 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="{&#39;contentCls&#39;: &#39;taobaoux-com&#39;,&#39;navCls&#39;: &#39;bbs-taobaoux-com&#39;,&#39;effect&#39;: &#39;scrollx&#39;,&#39;easing&#39;: &#39;easeOutStrong&#39;,&#39;prevBtnCls&#39;:&#39;prev1920&#39;,&#39;nextBtnCls&#39;:&#39;next1920&#39;,&#39;autoplay&#39;: true,&#39;viewSize&#39;:[1920],&#39;circular&#39;: true}" data-widget-type="Carousel" class="J_TWidget">
                        
                        <p class="J_TWidget" data-widget-config="{&#39;trigger&#39;:&#39;.ux1920&#39;,&#39;align&#39;:{&#39;node&#39;:&#39;.ux1920&#39;,&#39;offset&#39;:[-500,0],&#39;points&#39;:[&#39;cc&#39;,&#39;cc&#39;]}}" 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="{&#39;trigger&#39;:&#39;.ux1920&#39;,&#39;align&#39;:{&#39;node&#39;:&#39;.ux1920&#39;,&#39;offset&#39;:[500,0],&#39;points&#39;:[&#39;cc&#39;,&#39;cc&#39;]}}" 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>
Copy after login




1. Modify the left arrow

<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>
Copy after login

2. Modify the right arrow:

<p class="next1920" style="font-size:100px;cursor:pointer;opacity:0.5;color:#f00;">></p>
Copy after login

is changed to:

  <p class="next1920" style="width:97px;height:97px;">     <img src="右箭头图片地址" /></p>
Copy after login



3. The arrows are placed on the left:

<

Copy after login

is changed to:

<p class="J_TWidget" data-widget-config="{&#39;trigger&#39;:&#39;.ux1920&#39;,&#39;align&#39;:{&#39;node&#39;:&#39;.ux1920&#39;,&#39;offset&#39;:[-500,0],&#39;points&#39;:[&#39;cc&#39;,&#39;cc&#39;]}}" 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>
Copy after login

4. Change the thumbnail below to a number:

 <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>
Copy after login

Change to:

    <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>
Copy after login

5. Don’t like the bottom translucency Picture:

<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;">
Copy after login

Delete:

background: url(http://demo.taobaoux.com/Carousel/Carousel_bg.png) repeat;
Copy after login



6. Modify the scroll animation effect:

Find 'effect': 'scrollx ' Change scrollx to scrolly to scroll vertically, and to fade to fade in and out.

7. Modify the scroll animation speed:

In 'effect': 'scrollx', add a property 'duration': 0.5,
The default value is 0.5, if you need to speed up the scrolling For speed, change 0.5 to 0.1; if you need a slower scrolling speed, increase 0.5. It is recommended to change it to within 0.9.

Article address: http://www.php.cn/div-tutorial-377487.html

Come to PHP Chinese website to learn programming www.php.cn

The above is the detailed content of Taobao shop carousel image html code organization and partial adjustment. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template