Overflow:hidden not working in safari browser

若如初见. 提交于 2019-12-13 05:50:06

问题


I applied Overflow:hidden to <body> and <html> tags to stop scrolling of page when popup element is clicked this property working fine for me in almost every browser but not in Safari I googled for this solution but cannot find a solution to this so please someone help me in solving this thanks in advance


回答1:


Could you try adding the overflow to the Body and the HTML tag?

html,
body {
    overflow: hidden;
} 


来源:https://stackoverflow.com/questions/28407499/overflowhidden-not-working-in-safari-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!