在使用jQuery Accordion时,在页面上查找字符串(Ctrl + F) [英] Find String on Page (Ctrl+F) when jQuery Accordion in Use

查看:124
本文介绍了在使用jQuery Accordion时,在页面上查找字符串(Ctrl + F)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用jQuery手风琴插件来折叠大页面。它很好地工作,是一个很好的方式来压缩页面,但我注意到,当使用浏览器搜索功能找到(Ctrl + F)它只看在打开 div 的搜索字符串。

有没有办法让浏览器查找搜索所有 div s甚至打开它们,如果发现)...我明白为什么这不是微不足道的。搜索将不得不打开 div s来显示结果,这是不明显的...



如果有是不是一个明显的方式来解决这个问题,这将是编程方式吗?



有什么想法?



COM /问题/ 14778452 /肘节的整手风琴式的功能与 - 链路或按钮>切换整套手风琴功能与链接或按钮



我给了用户一个选项,一起切换手风琴,然后他们可以用Ctrl + F搜索。


I am using jQuery accordion plugin to collapse a large page. It works nicely and is a great way to compact the page but I noticed that when using the Browser search function find (Ctrl+F) it only looks in the open div for the search string.

Is there a way to get the browser find to search through all the divs (and maybe even open them if found)... I see why this is not trivial. The search would have to open the divs to show results and this is not obvious...

If there isn't an obvious way to get around this, what would be the approach to doing this programatically?

Any ideas?

解决方案

I went with this option, as described elsewhere:

Toggle Entire Accordion Functionality with Link or Button

I give the user an option to toggle the accordion all together and then they can search with Ctrl+F.

这篇关于在使用jQuery Accordion时,在页面上查找字符串(Ctrl + F)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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