Home >Web Front-end >HTML Tutorial >移动端网站或APP点击后出现闪动或灰色背景_html/css_WEB-ITnose

移动端网站或APP点击后出现闪动或灰色背景_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:34:191207browse

遇到这个问题了,记录下,备用~<br /><br />文章来源:http://www.lxway.com/846165591.htm<br /><br />---------------------------<br /><br /><br />隐藏文本框阴影:<br />

input, textarea{-webkit-appearance: @none;}

   

 

取消手机点击屏幕时,会出现的灰块

html,body{-webkit-text-size-adjust: 100%;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}

 

移动端网站或APP点击后出现闪动或灰色背景

只需对绑定事件添加class样式 使其触发事件时背景为透明色 

.class{-webkit-tap-highlight-color:transparent;}

  

 
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn