JQuery:像 Mashable 一样浮动共享框?
我正在寻找一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
最简单的解决方案可能是这样的:(
来源:http://www. w3schools.com/css/tryit.asp?filename=trycss_position_fixed)
The easiest solution might be something like this:
(source: http://www.w3schools.com/css/tryit.asp?filename=trycss_position_fixed)
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