using jquery scroll on ie11 issues with jittery elements

折月煮酒 提交于 2019-12-06 13:43:59

It seems like adding height: 100%; and overflow: auto; to the html, body elements removes the IE 11 issue:

JsFiddle Demo

[Edit]: Adding margin: 0; removes double scrollbars.

for edge use:

/*Edge - works to 41.16299.402.0*/
@supports (-ms-ime-align:auto) 
{
    html{
        overflow: hidden;
        height: 100%;       
    }
    body{
        overflow: auto;
        height: 100%;
        position: relative;
    }
}

/*Ie 10/11*/
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) 
{
    html{
        overflow: hidden;
        height: 100%;    
    }
    body{
        overflow: auto;
        height: 100%;
        position: relative
    }
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!