Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/97.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html Mobile Safari(iOS 7)忽略溢出值_Html_Ios_Css_Iphone_Overflow - Fatal编程技术网

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这两种方式都不起作用:(