jQuery SlideToggle() 仅滑动以覆盖部分背景

发布于 2024-12-28 18:52:55 字数 299 浏览 2 评论 0原文

我已经设置了可点击的 div,用户可以将其用作网页上的按钮。我想创建一个用户单击的这些“按钮”的“工具箱”,但我希望隐藏大部分按钮,直到用户单击“更多按钮”按钮(箭头)。为了让用户知道工具箱包含更多按钮,我想显示第二行按钮的上半部分。

在 jQuery 中是否有一种巧妙的方法可以做到这一点?

希望这个线框有帮助:

Before 之后

I've got clickable div's set up that users use as buttons on a webpage. I'd like to create a "toolbox" of these "buttons" that users click on, but I'd like to have most of the buttons hidden until a user clicks a "more buttons" button (an arrow). To let the user know that the toolbox includes more buttons, I'd like to display the top half of the second row of buttons.

Is there a nifty way to do this in jQuery?

Hopefully this wireframe helps:

Before
After

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

揽清风入怀 2025-01-04 18:52:55

试试这个http://jsfiddle.net/heera/zfVF5,也许这会对你有所帮助。

Try this http://jsfiddle.net/heera/zfVF5, May be this will help you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文