如何在点击链接,在web视图的时候禁用橙色圆圈效果 [英] How to disable the orange circle effect when clicking on a link, in a WebView

查看:87
本文介绍了如何在点击链接,在web视图的时候禁用橙色圆圈效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图捕捉鼠标点击的位置,所以我在标签写了的onClick ,但每次我在页面上点击整个页面变成橘红色了一小会儿。是否有任何设置,可以禁用此effet?

I'm trying to catch the mouse click location so I wrote an onClick in the body tag, but every time I click on the page the whole page turn orange for a little while. Is there any setting can disable this effet?

推荐答案

根据线程可以覆盖默认橙色轮廓,通过重写

According to this thread you can override the default orange outline by overriding

-webkit-自来水高亮双色

-webkit-自来水高亮颜色:RGBA(255,255,255,0)

在你的CSS文件(你需要创建一个CSS文件,并添加这个,如果你目前还没有一个)。 0最后的值设置alpha值,有效地渲染(即完全可见1)颜色不可见。如果这不是你要找的就可以在其他WebKit的风格捅找到类似声明的具体CSS样式。

in your css file (you'll need to create a css file and add this if you currently don't have one). The last value of 0 sets the alpha value to effectively render the color invisible (1 being fully visible). If that's not the exact css style you're looking for you can poke around the other webkit styles to find similar declarations.

道具乔·麦肯的想法。

这篇关于如何在点击链接,在web视图的时候禁用橙色圆圈效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆