gpt4 book ai didi

jQuery .animate 宽度 : 'show' /'hide' from other side

转载 作者:行者123 更新时间:2023-12-01 04:18:27 25 4
gpt4 key购买 nike

简单的问题。我在右上角有一些窗口工具,我希望它们在悬停时显示。很简单,我已经做到了

d.animate({ width: 'show',opacity:0.7},120);

一切都很好,但它是从左向右滑动的。如果从右向左进行,看起来会更好。是否可以在不扩展代码的情况下简单地更改它?

最佳答案

http://jsfiddle.net/thHZ9/

如果您要绝对定位元素,请确保将其定位在其右侧,而不是左侧:

#cool{
position:absolute;
right:10px;
top:10px;

...
}​

关于jQuery .animate 宽度 : 'show' /'hide' from other side,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12730450/

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