如何使jQuery Sticky Float插件实时响应页面更改? [英] How to make the jQuery Sticky Float plug-in react live to page changes?
问题描述
我一直在研究非常出色的"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屋!