Can the browser feature of Ctrl+F to find text be integrated with text in popup windows.
I'd like to have some scientific reference information given when someone hovers over a species name in a web page. Generating the popup, tooltip style text is no problem, the problem is that anyone using Ctrl+F won't be able to find it, or if I position the text out of view when not required, it will be found but be invisible.
同样的效果适用于“手风琴”样式扩展文本区域。
我正在寻找当 find 突出显示结果时生成的某种事件。
不幸的是没有这样的事件,你不能干扰内置的查找。
在这种情况下,您能做的最好的事情就是在页面中提供您自己的搜索功能,该功能在 DOM 中搜索包含给定文本的文本节点,突出显示它们,并打开它们所在的任何关闭的手风琴。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)