Windows Phone 7 浏览器 - 单击链接时关闭灰色阴影 [英] Windows Phone 7 Browser - Turn off the gray shading when links are clicked

查看:23
本文介绍了Windows Phone 7 浏览器 - 单击链接时关闭灰色阴影的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于 Windows Phone 7 浏览器,当用户单击链接时,它会以灰色矩形阴影显示大约 0.5 秒.这通常很好,但是,如果您有动态页面行为,例如,单击链接会更新 DOM,使链接不再可见,则在链接本身消失后,不透明的灰色矩形会留在屏幕上.

这看起来很可怕!

有谁知道如何禁用此效果?

解决方案

在你的 html 文件的 head 部分添加一个元标记.

它应该可以工作.

With the Windows Phone 7 Browser, when the user clicks a link, it is shaded with a gray rectangle for approximately 0.5 seconds. This is fine in generally, however, if you have dynamic page behaviour, for example, clicking a link updates the DOM so that the link is no longer visible, the opaque gray rectangle lingers on the screen after the link itself has gone.

This looks pretty horrible!

Does anyone know how to disable this effect?

解决方案

Add a meta tag in you head section in you html file.

<meta name="msapplication-tap-highlight" content="no" /> 

It should work.

这篇关于Windows Phone 7 浏览器 - 单击链接时关闭灰色阴影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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