如何在WebView中突出显示搜索结果,如Safari和NSTextView showFindIndicatorForRange: [英] How to I highlight search results in a webview like Safari and NSTextView showFindIndicatorForRange:

查看:294
本文介绍了如何在WebView中突出显示搜索结果,如Safari和NSTextView showFindIndicatorForRange:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Safari中,在OSX上的NSTextView中,搜索结果可以突出显示一个明亮的黄色框,有一些动画的流行。

解决方案

答案(截至2013年5月)似乎是你必须手动突出显示在webview中的查找结果(ref:实现查找菜单项(如Safari?)线程从2011年),虽然它是一个长期规划的webkit功能



我将列出我在研究此链接时发现的链接。 >


In Safari, and in an NSTextView on OSX, search results can be highlighted with a bright yellow box that has a little animated pop. Is there any way to do this in a webview without coding it all myself?

解决方案

The answer (as of 2013-05) seems to be that you have to highlight the find results in the webview manually (ref: "Implementing a Find menu item like Safari?" thread from 2011), although it's a long-planned webkit feature.

I'll list the links I found while researching this.

这篇关于如何在WebView中突出显示搜索结果,如Safari和NSTextView showFindIndicatorForRange:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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