我有一个基于Cordova构建的应用程序,在我的某些页面上,我可以水平滚动超出我的内容进入白色空间。
这很奇怪,因为我没有任何东西超出了我的#wrapper,它被设置为width:100%。
所以我想知道是否有一种方法可以完全禁用应用程序中的水平滚动?
更新:
页面上的代码如下所示:
这很奇怪,因为我没有任何东西超出了我的#wrapper,它被设置为width:100%。
所以我想知道是否有一种方法可以完全禁用应用程序中的水平滚动?
更新:
页面上的代码如下所示:
body {
background-color: #fff;
font-family:Arial, Helvetica, sans-serif;
color: #b7b8b9;
height: 100%;
width: 100%;
}
iframe{
border: none;
width: 100%;
/*margin-top: 50px;*/
}
#header{
height: 50px;
width: 100%;
}
<body>
<div id="wrapper">
<div id="header">
<div class="headerback"><a href="index.html">Home</a></div>
<div class="headerrefresh"><script>var pathname = window.location.pathname;</script><script>document.write('<a href="'+pathname+'">Refresh</a>')</script></div>
<div class="headertitle"><h2>Get the Look</h2></div>
</div><!--HEADER-->
<iframe src="http://www.mbff.com.au/getthelook"></iframe>
</div>
</body>