gpt4 book ai didi

javascript - 背景位置上的补间不起作用

转载 作者:太空宇宙 更新时间:2023-11-04 15:23:47 26 4
gpt4 key购买 nike

谁能告诉我原因

$(''+this.get("rel")+'-arrow').tween("margin-top",-10);

工作和

$(''+this.get("rel")+'-arrow').tween("background-position","center -10px");

没用?非常感谢:)

最佳答案

所有动画方法都为数字值设置动画,center 不是,实际上,您不应该使用 center,它是 50%.

示例:http://jsfiddle.net/bejD4/

document.getElement('div').tween('background-position', '50% 100px');

关于javascript - 背景位置上的补间不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5505756/

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