css - 模拟位置 : fixed in IE6 with a div of 100% height?

标签 css xhtml internet-explorer-6 css-position

我的网页上有一个边栏,它应该跨越 100% 的页面(垂直)。然后它应该留在那里,所以当其余内容滚动时它不会。为此,我使用了:

body
{
    height: 100%;
}

#sidebar
{
    height: 100%;
    width: 120px;
    position: fixed;
    top: 0;
    left: 0;
}

这适用于所有现代浏览器!不幸的是,我必须为不支持 position: fixed 的 IE6 编写代码。你知道我会怎么做吗?

最佳答案

This is the fix »

我?我会尽快使用更常见的导航方法,或者使用 (gasp) 框架。

关于css - 模拟位置 : fixed in IE6 with a div of 100% height?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/387485/

相关文章:

javascript - 工具提示在 Highcharts 3.X 中被 chop

html - 溢出 :hidden ignoring bottom padding

css - 在 ie 中 float 不正确?

java - 获取 SessionBean 实例

css - 如何获得类(class)内的头等类?

javascript - 在 IE6 中呈现之前元素高度未知;怎么解决?

html - 不使用JS可以实现这种灵活的布局吗?

javascript - 如何制作一个导入 .css 文件的按钮?

html - IE6 两个 Div 在包装 div 中,当内容改变时,一个 div 拒绝改变宽度

应用于 DIV 内容的 CSS