gpt4 book ai didi

jQuery Accordion 箭头位置

转载 作者:行者123 更新时间:2023-12-01 08:18:28 24 4
gpt4 key购买 nike

我的脚本部分工作,但是第二次单击不会将箭头(arrowIcon 类)返回到其原始状态。我错过了什么;

$('.expand .show').click(function (){
$(this).parent().find('div.slide').slideToggle('fast');
$(this).find('.arrowIcon').slideDown(function (){
if ($(this).css('backgroundposition-y') < 0){
$(this).css({'background-position':'0px 0px'});
} else {
$(this).css({'background-position':'0px -14px'})
}
});
});

非常感谢任何帮助..

最佳答案

CSS属性不是background-position-y而不是“backgroundposition-y”吗?

关于jQuery Accordion 箭头位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8894374/

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