简体   繁体   English

滑动时出现Phonegap / iPhone模拟器突出显示元素的问题

[英]Issue with Phonegap / iPhone Emulator highlighting element on swipe

Building a phonegap app and I'm having a problem in which swiping up or down on some of the pages that don't have scrollable content highlights the bottom of the element in which you swipe on (in most of my cases my main 'content' div). 在构建一个phonegap应用程序时,我遇到了一个问题,即在不具有可滚动内容的某些页面上上下滑动会突出显示您要滑动的元素的底部(在大多数情况下,我的主要“内容” 'div)。

I've tried adding the following in hopes this would solve the issue: 我尝试添加以下内容,希望可以解决此问题:

* { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }

...but sadly this changes nothing. ...但是遗憾的是,这并没有改变。 Any ideas on how to stop this random highlighting? 关于如何停止这种随机突出显示的任何想法? Picture below illustrating the problem. 下图说明了问题。

iPhone模拟器Div Issue Picture

The error ended up being a simple css ruling on my body... 错误最终只是对我身体的简单CSS裁决...

height: 100%;

Removing this made the error stop appearing... 删除它使错误停止出现...

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

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