如何使jQuery Sticky Float插件实时响应页面更改? [英] How to make the jQuery Sticky Float plug-in react live to page changes?

查看:99
本文介绍了如何使jQuery Sticky Float插件实时响应页面更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在研究非常出色的"stickyfloat"插件( http://plugins.jquery.com/files/stickyfloat_0.htm ),用于我正在处理的项目的jQuery.我需要将面板右侧的页面保持在视图中",因为左侧的内容在滚动. stickyfloat插件可以使用,但是如果您使用jQuery来影响它所在的​​内容块的长度,它不会更新其计算.

有什么办法可以调整此插件,使其尊重内容div高度的实时更改?

解决方案

我编写了此插件,并重新发布并修复了启动插件后动态更改高度的问题,请查看以下内容:

http://dropthebit.com/74/sticky-floating-box/

I've been looking at the really rather wonderful 'stickyfloat' plug-in (http://plugins.jquery.com/files/stickyfloat_0.htm) for jQuery for a project I'm working on. I need to keep a panel on the right of the page 'in view' as the content on the left scrolls. The stickyfloat plug-in works a treat but it doesn't update it calculations if you use jQuery to effect the length of the content block in which it sits.

Is there any way I might be able to adjust this plug-in to make it respect live changes to the content div height?

解决方案

I wrote this plugin, and I have re-posted it and fixed this issue of height being changed dynamically after the plugin was initiated, check this out:

http://dropthebit.com/74/sticky-floating-box/

这篇关于如何使jQuery Sticky Float插件实时响应页面更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆