0
現在、ホームページにはさまざまな行があり、各行にはボタンがあります。ボタンをクリックすると、divがページの上部にスライドします。しかし一方で、ボタンに追加された別のアクションもあります。以下は私のjsのコードです:私は使用しています現在のdivにスライドをスクロール
$(".expandable-container-mobile").click(function() {
var el = $(this).find('.mobile-show-section');//get the current element
var el2 = $(this).find('.expandable');
el.stop().slideToggle(700);//toggle the current one
$(this).children('.expandable').toggleClass('clicked');
$('.expandable').not(el2).removeClass('clicked');
$('.mobile-show-section').not(el).stop().slideUp();//hide the rest
});
scrollify JS $ .scrollify.move( "#名");それはdiv-section-nameで動作しないように見えますが、それを達成する他の方法もうまくいきます。
は同様に私たちは何の良いアイデアを持っているので、あなたのHTMLを投稿を参照してください。あなたがやろうとしている –