这听起来应该在互联网上到处都有解决方案,但我不确定为什么我找不到它.我想在移动设备上禁用水平滚动.基本上就是要做到这一点:
body{
overflow-x:hidden // disable horizontal scrolling.
}
这可能是相关信息:我的head标签中也有这个,因为我也不希望用户能够zoom :
<meta content='width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;' name='viewport' />
<meta name="viewport" content="width=device-width" />
谢谢