Html Mobile Safari(iOS 7)忽略溢出值
关于这个问题,我已经回答了这里的所有问题,但我仍然被卡住了 我有一个网页,页面上有很多Html Mobile Safari(iOS 7)忽略溢出值,html,ios,css,iphone,overflow,Html,Ios,Css,Iphone,Overflow,关于这个问题,我已经回答了这里的所有问题,但我仍然被卡住了 我有一个网页,页面上有很多绝对位置ed元素,我想要overflow-x:hidden,因为我有一个滑动移动菜单。(如果点击菜单图标,然后将手指向左滑动,菜单将消失,但由于向左滚动,留下了一个较大的空白)。我所尝试的: html { overflow-x: hidden !important; } body { overflow-x: hidden !important; } /* I know this is rep
绝对
位置
ed元素,我想要overflow-x:hidden
,因为我有一个滑动移动菜单。(如果点击菜单图标,然后将手指向左滑动,菜单将消失,但由于向左滚动,留下了一个较大的空白)。我所尝试的:
html {
overflow-x: hidden !important;
}
body {
overflow-x: hidden !important;
}
/* I know this is repetitive, but the above two aren't working, so I'm trying this as well */
html, body {
overflow-x: hidden !important;
}
html body {
overflow-x: hidden !important;
}
我也尝试过使用
overflow-y
,以防出现奇怪的方向问题,但这仍然不起作用(事实上,它仍然会向下/向上滚动)。我也尝试过溢出:隐藏!重要的溢出y:自动代码>但同样,它不起作用。这就好像它完全忽略了溢出
规则。我知道样式表很好,因为它正在从该样式表中读取其他规则。有什么想法吗?如果您想查看它:@florianbussmann,这不会删除上/下滚动功能?@florianbussmann这两种方式都不起作用:(