防止放大镜出现
我想在选择文本并单击鼠标 1-2 秒时显示我自己的弹出窗口。我可以让它在 FF/Chrome 中工作,但在 iphone/ipad 的 safari 中,当我点击文本有时会出现放大镜,如何防止该放大镜并显示我自己的弹出窗口?
I want to show my own popup when a text is selected and mouse is clicked for 1-2 seconds. I can get it working in FF/Chrome but in iphone/ipad's safari when I tap a text for sometime a magnifier appears, how to prevent that magnifier and show my own popup?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我没有显示您自己的弹出窗口的所有答案(这需要一些 JS 黑客攻击),但要摆脱放大镜,只需将其添加到您的 CSS 中:
...或者只是添加到您想要的元素禁用放大镜。
I don't have all the answers for showing your own popup (that'll require some JS hacking), but to get rid of that magnifying glass, just add this to your CSS:
...Or just add to the element you want to disable the magnifier on.