Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在为我正在从事的项目寻找 jQuery 的非常棒的“stickyfloat”插件(http://plugins.jquery.com/files/stickyfloat_0.htm )。当左侧的内容滚动时,我需要在页面右侧保留一个面板“可见”。stickyfloat 插件很有效,但如果您使用 jQuery 来影响它所在的内容块的长度,它不会更新它的计算。
有什么办法可以调整这个插件,使其尊重内容 div 高度的实时变化?
我写了这个插件,我已经重新发布并修复了这个插件启动后高度动态变化的问题,检查一下:
http://dropthebit.com/74/sticky-floating-box/