html - 固定定位侧边栏对齐

标签 html css

我有一个侧边栏,我试图在我的页面上粘住 http://r1creative.net/station22/我在页脚中有一个脚本,当页面到达某个点时将其从静态更改为固定。这工作正常,但我遇到的问题是当它切换时,它改变了 div 保持导航功能区的方式并且它们不再“挂”在一边。我试着搞乱不同的组合,但没有什么能保持滚动效果,让丝带看起来一样。任何帮助将不胜感激。

谢谢

这是我试图复制的边栏示例 http://www.apple.com/finalcutpro/all-features/#incredible-performance

最佳答案

看起来问题出在您的“右浮动”

#navwrap {
    width: 295px;
    float: right; // remove 
    height: 679px;
    background: #F3F3F3;
    position: relative;
    left: 27px; // Add this left positioning
    z-index: 1;
    padding: 20px 0 0;
    box-shadow: -4px 4px 8px #444;
}

让我知道这有帮助。

关于html - 固定定位侧边栏对齐,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11837107/

相关文章:

html - 从随机/垃圾 ASCII 中恢复原始 UTF8/Kanji/中文文本

html - 使用 css 自动重定向带有转换的页面

html - 调整大小时,我的 div 正在下降

CSS Sprite 图裁剪片段背景

c# - 在 asp.net mvc 中使用 Razor 的 Css View 模型

html - 防止 Coldfusion 编码 html

html - 垂直对齐绝对 div 内容

javascript - toggleClass 不保留以前的点击事件 jquery

html - 在 Jumbotron 中创建背景图像

jquery - .append 不添加 .item 到 .list