在 Web 视图中搜索并查找单词/字母

发布于 2024-12-27 15:57:47 字数 119 浏览 2 评论 0原文

我有一个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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

独行侠 2025-01-03 15:57:47

您可以在 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 .

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文