在 Web 视图中搜索并查找单词/字母
我有一个Webview,在其中显示html页面,在那里我放置了一个搜索栏,现在我必须找到我在搜索栏中输入的字母或特定单词,这些字母或单词应该用不同的颜色突出显示当前的 html 页面。 帮助我
提前致谢
I have a Webview in which i display the html pages,there i have placed a search bar, Now I have to find a letter or a particular word that i type in the search bar, those letters or word should be highlighted with different color in the present html page.
Help me out
Thanks in Advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在 Web 视图上显示的 html 文档中搜索这些关键字。现在,您可以使用用 <>keyword<> 替换关键字字符串形成的新 html 重新加载 Web 视图。细绳 。
you can search for those keyword inside your html document that you are showing on the webview .Now you can reload the webview with new html formed by replacing keyword string with <>keyword<> string .