0
ブートストラップv4スライダを動作させようとしています。ブートストラップv4カルーセルが初期化されていません
スライダの右側にテキストがあり、このテキストは各スライドで変更されることになっています。
私は必要なCSS/JSに追加しましたが、スライダは初期化されません。
マイJS:
<script>
$(document).ready(function() {
//set here the speed to change the slides in the carousel
$('#features').carousel({});
//Loads the html to each slider. Write in the "div id="slide-content-x" what you want to show in each slide
$('#carousel-text').html($('#slide-content-0').html());
// When the carousel slides, auto update the text
$('#features').on('slid.bs.carousel', function (e) {
var id = $('.item.active').data('slide-number');
$('#carousel-text').html($('#slide-content-'+id).html());
});
});
</script>
は、どのように私は、カルーセルの側のテキストを取得しますか? – David
あなたはそれをCSSで行うことができます。ここではわずかに変更されたマークアップの例https://jsfiddle.net/y8h5oqfw/3/ –