Bootstrap nested carousel and bootstrap nested

Source: Internet
Author: User

Bootstrap nested carousel and bootstrap nested

Bootstrap carousel is implemented using the following html code:

<Div class = "carousel slide" id = "CarouselId">
<Div class = "carousel-inner">
<Div class = "item">

<Div class = "carousel slide" id = "CarouselId1">

<Div class = "carousel-inner">

<Div class = "item"> content of the first frame of the second layer container </div>
<Div class = "item"> content of the second frame of the first container </div>

......

</Div>

<Ol class = "carousel-indicators">
<Li class = "active" data-slide-to = "0" data-target = "# using uselid1"> </li>
<Li data-slide-to = "1" data-target = "# using uselid1"> </li>
<Li data-slide-to = "2" data-target = "# using uselid1"> </li>

......
</Ol>

<A data-slide = "prev" class = "left outer usel-control" href = "# using uselid1"> </a>
<A data-slide = "next" class = "right using usel-control" href = "# using uselid1"> </a>

</Div>

</Div>
<Div class = "item"> content of the first frame of the first container </div>
<Div class = "item"> content of the second frame of the first container </div>

......

</Div>

<Ol class = "carousel-indicators">
<Li class = "active" data-slide-to = "0" data-target = "# using uselid"> </li>
<Li data-slide-to = "1" data-target = "# using uselid1"> </li>
<Li data-slide-to = "2" data-target = "# using uselid1"> </li>

......
</Ol>

<A data-slide = "prev" class = "left outer usel-control" href = "# Your uselid"> </a>
<A data-slide = "next" class = "right using usel-control" href = "# using uselid"> </a>
</Div>

However, if

<Div class = "item"> </div>

If you want to embed slideshow in, the existing code will go wrong, because the find method is used for selecting elements in event binding in javascript, during initialization, when the carousel container whose first layer id is cancuselid selects class as item, the nested items in the item are also selected, when all sub-elements whose class is carousel-indicators are also selected, the child element of the first level must be selected with children manually.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.