JQuery:像 Mashable 一样浮动共享框?

发布于 2024-08-24 20:00:40 字数 516 浏览 2 评论 0原文

我正在寻找一个 jQuery 插件,它可以为我提供浮动共享框功能,就像 Mashable 在其新设计中实现:http://mashable.com/2010/03/12/flickr-co-Founders-startup-预感筹集 1000 万/

在 Mashable 上方页面的左侧,有共享选项,当您滚动页面时,这些选项会保留在屏幕上。我想使用 jQuery 插件在我的应用程序中实现相同类型的功能。

我怎样才能做到这一点?

I am looking for a jQuery plugin which can serve me the floating share box functionality just like Mashable implement in their new design: http://mashable.com/2010/03/12/flickr-co-founders-startup-hunch-raises-10-million/.

In the left side on the page above Mashable has sharing options which stays on the screen when you scroll the page. I want to implement the same kind of functionality in my application, using a jQuery plugin.

How can I do that?

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

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

发布评论

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

评论(2

沐歌 2024-08-31 20:00:40

最简单的解决方案可能是这样的:(

p.pos_fixed
{
     position:fixed;
     top:30px;
     right:5px;
}

来源:http://www. w3schools.com/css/tryit.asp?filename=trycss_position_fixed)

The easiest solution might be something like this:

p.pos_fixed
{
     position:fixed;
     top:30px;
     right:5px;
}

(source: http://www.w3schools.com/css/tryit.asp?filename=trycss_position_fixed)

我的黑色迷你裙 2024-08-31 20:00:40

CSS 可以让共享框在浏览器中固定位置。但它不会产生与 mashable.com 相同的效果。您必须结合使用 jQuery 和 CSS 来实现此目的。

这是一个好方法: 添加浮动分享按钮

CSS can give the share box a fixed position in the browser. But it will not give the same effect as mashable.com. You have to use jQuery in combination with CSS to achieve this.

Here is a good way to do it: Add floating share buttons

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