溢出:隐藏在Safari浏览器中不起作用 [英] Overflow:hidden not working in safari browser

查看:642
本文介绍了溢出:隐藏在Safari浏览器中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Overflow:hidden应用于<body> and <html>标记,以在单击弹出元素时停止页面滚动.该属性在几乎所有浏览器中都能正常工作,但在Safari中却不行.请有人帮助我提前解决这个问题

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

推荐答案

您可以尝试将溢出内容添加到Body和HTML标签吗?

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

html,
body {
    overflow: hidden;
} 

这篇关于溢出:隐藏在Safari浏览器中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆