2
我的Rails應用程序中的傳送帶一直運行到很久以前,現在下一個和上一個按鈕不起作用。對此視圖或CSS中的傳送帶不做任何更改。Rails中的Bootstrap傳送帶突然停止工作
這裏是我的代碼:
.carousel.slide#myCarousel
.carousel-inner
.active.item
=image_tag("/assets/1.jpg")
.carousel-caption
%h4 Caption
.item
=image_tag("/assets/2.jpg")
.carousel-caption
%h4 Caption
.item
=image_tag("/assets/3.jpg")
.carousel-caption
%h4 Caption
%a.carousel-control.left{"data-slide" => "prev", :href => "#myCarousel"} ‹
%a.carousel-control.right{"data-slide" => "next", :href => "#myCarousel"} ›