gpt4 book ai didi

jquery - 有没有办法在 jQuery 中左右滑动而不使用 jQuery UI 和 jQuery Mobile

转载 作者:行者123 更新时间:2023-12-01 05:52:00 27 4
gpt4 key购买 nike

你能告诉我有没有办法在 jQuery 中左右滑动而不使用 jQuery UI 和 jQuery Mobile。其实有一种向上滑动和向下滑动的方法。但是没有左右滑动?

最佳答案

检查这个http://jsfiddle.net/Jwkw6/1/

$(function() 
{
$('.specialist_pagecontent').eq(0).addClass("active").animate({ left : 0 }, 500);
$('.specialist').click(function() {
$('.specialist_pagecontent').filter(".active").removeClass("active").stop(true).animate({ left : '-100%' }, 500);
$('.selected-specialist').removeClass('selected-specialist');
$(this).addClass('selected-specialist');
$('.specialist_pagecontent').eq($(this).index('.specialist')).addClass("active").stop(true).animate({ left : 0 }, 500);
});
});

希望对你有帮助

关于jquery - 有没有办法在 jQuery 中左右滑动而不使用 jQuery UI 和 jQuery Mobile,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20715231/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com