如何删除三星 Galaxy 浏览器上的视觉反馈框
单击链接时,其周围会绘制一个深橙色框架。有时它会保留到下一次滚动或屏幕触摸为止。
当单击其他一些元素时 - 有时也会出现橙色框,其大小与单击的元素(div、canvas)的大小相同,有时更大。
如何调用这种(依赖于平台?)视觉反馈调整以及(主要问题)是否有一种编程(javascript?)方法可以将其关闭?
When a link is clicked a dark orange frame is drawn around it. Sometimes it stays till the next scroll or screen touch.
When some other elements are clicked - the orange frame appears as well sometimes by the size of the clicked element (div, canvas), sometimes bigger.
How this (platform-dependent?) visual feedback tweak is called and (main question) is there a progammatic (javascript?) way to turn it off?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来这是浏览器应用的主动样式。尝试将其添加到您的 css 中:
希望有帮助。
更新:如果这不起作用,您可能想尝试
It sounds like that's an active style applied by the browser. Try adding this to your css:
Hope that helps.
Update: If that doesn't work you may want to try
我有一个(可点击的)
canvas
元素,周围是完全透明的div
。深橙色轮廓(令人惊讶地)是由div
(而不是canvas
)生成的。更令人惊讶的是 - 轮廓的大小比div
的大小大得多(没有其他元素 - 选中)。因此,我决定关闭大纲,这个(http://stackoverflow.com/questions/7398763/android-browser-remove-outline-border-when-anchor-is-focused)答案解决了问题。I had a (clickable)
canvas
element, surrounded by a fully transparentdiv
. The dark orange outline was (surprisingly) generated by adiv
(notcanvas
). Even more surprising - the size of the outline was much bigger than the size ofdiv
(no other elements - checked). So, I've decided to switch the outline off and this (http://stackoverflow.com/questions/7398763/android-browser-remove-outline-border-when-anchor-is-focused) answer solved the problem.