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.