简体   繁体   English

禁用Windows Phone 8 HTML5应用中的浏览器橡皮筋效果?

[英]Disable Browser Rubber Band effect in Windows Phone 8 HTML5 App?

Does anyone know of a way to disable the "Rubber Band" effect in the IE10 browser on a Windows Phone 8 device? 有谁知道在Windows Phone 8设备上的IE10浏览器中禁用“橡皮筋”效果的方法吗? I tried a trick where I can create a high DIV and absolutely position it and then try and fix the position of the main content div, but IE10 seems to ignore that. 我尝试了一个技巧,可以创建一个高DIV并将其绝对定位,然后尝试固定主要内容div的位置,但是IE10似乎忽略了这一点。 It's hard to make an HTML5 app feel like an app when it giggles everywhere... 当HTML5应用程序无处不在时,很难使它看起来像一个应用程序...

尝试为身体添加-ms-touch-action:none,如下所示:

<style type="text/css">body {{-ms-touch-action:none; }}</style>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM