3 W014
Herst редактировал(а) эту страницу 2019-08-18 12:44:27 +02:00

W014

Bootstrap v0.x

For proper processing of click events within a carousel, each anchor within .carousel-control should include either a href or data-target attribute with the ID of the corresponding element within the carousel.

Wrong:

<a class="left carousel-control" role="button" data-slide="prev">

Right:

<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">

Also Right:

<a class="left carousel-control" data-target="#carousel-example-generic" role="button" data-slide="prev">

Bootstrap v1.x (Bootlint for Bootstrap v4 and newer)

For proper processing of click events within a carousel, each anchor within .carousel-control should include either a href or data-target attribute with the ID of the corresponding element within the carousel.

Wrong:

<a class="carousel-control-prev" role="button" data-slide="prev">

Right:

<a class="carousel-control-prev" href="#carousel-example-generic" role="button" data-slide="prev">

Also Right:

<a class="left carousel-control" data-target="#carousel-example-generic" role="button" data-slide="prev">