滚动移动内容 div 然后将其位置固定在底部

on scroll moving the content div and then fix its position at bottom

我有一个两栏布局,其中侧边栏的高度大于内容,因此在底部留下白色 space....

我希望内容 div 在滚动时显示完整内容后停留在底部。我的内容 div 在包装器 div

这是在线测试页面 Check live page here

请尝试使用我的 css 类 编写 jQuery 代码,看看是否有任何 css 声明问题导致问题....

尝试对您的 html 和 css 进行以下更新:

  1. 替换为ul元素和HTML

  2. 这部分的所有子元素
  3. 应用以下样式:

    #基本页面 { 位置:固定; 右:0; }

  4. 从 css class ".content-wrapper"
  5. 中删除左侧:0px

我使用了 jquery 插件 scrolltoFixed 来固定正确的内容 div 并滚动左侧边栏

http://bigspotteddog.github.io/ScrollToFixed/