gpt4 book ai didi

javascript - 水平滚动 - 就像 github

转载 作者:行者123 更新时间:2023-11-28 12:07:43 28 4
gpt4 key购买 nike

是否有一个 JavaScript 库可以让我在单击文件/文件夹时实现水平滚动效果,就像 github 所做的那样。

最好是 jQuery 插件。

谢谢

最佳答案

查看github的源代码,似乎他们使用jQuery.animate将内容向左滑动。

$("#id").animate({
marginLeft: "-1200px"
});

Example on jsfiddle

关于javascript - 水平滚动 - 就像 github,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7404463/

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