css - IE 11 中的问题 : Fixed background move up-down with scroll

标签 css internet-explorer css-position internet-explorer-11

我的网页顶部有一个固定标题。它在 chrome 和除 Internet Explorer 之外的任何其他浏览器中看起来都不错。

但是当我尝试在 IE 11 中运行网页时,顶部标题随着滚动而上下跳动。

此错误也发布在 Internet Explorer Feedback

对我来说,这个错误只在页面有水平滚动条时出现。

固定顶部标题的 CSS 样式:

.dashboard-fixed-top
 {
    background-color: #3b5999;         
    top: 0;
    position: fixed;
    right: 0;
    left: 0;
    z-index: 1030;
    margin-bottom: 0;
    overflow: visible;        
    padding-top: 5px;
    height:32px; 
    max-height:32px; 
}

Code in Jsfiddle [在 Fiddle 中运行完美]

我没有得到任何合适的解决方案来克服这个问题。

有没有可能解决这个问题?

如有任何帮助,我们将不胜感激,提前致谢...!!!

以下两个屏幕截图描述了我的问题....

In this screen-shot my blue fixed header showing correctly

After moving window scroll a bit lower my blue header look like this (i.e. move up and hide some part of header inside browser command bar)

最佳答案

尝试将您的文档类型更改为 <!DOCTYPE html>

关于css - IE 11 中的问题 : Fixed background move up-down with scroll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22165129/

相关文章:

javascript - 回调函数自动滚动失败

javascript - 定位 z-index 没有按预期工作

php - ../从根文件夹调用文件的方法导致下拉列表不会在 IE8 上显示 i

javascript - Kendo Grid 的列在 IE 10 和 IE 11 中不可调整大小

css - 这个变化条是如何使用绝对和相对位置制作的?

iphone - maximum-scale=1.0 有什么问题?

css - 文本框的水平滚动条

css - 为什么我的 CSS slider 不能在 IE 中工作?

html - 缩小整个网站后,如何使固定位置居中?

html - 位置为 :fixed nav 的流体布局