jQuery移动高亮效果
我希望将 jquery ui 之类的突出显示效果应用于元素,但我使用的是 jquery mobile。 jquery mobile 中是否有内置的东西可以让我做到这一点,而无需引用任何 jquery ui 内容?
谢谢
I am looking to apply a jquery ui like highlight effect to an element , but I am using jquery mobile. Is there anything built into jquery mobile that would allow me to do that, without referencing any of the jquery ui stuff ?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
像这样的东西会起作用吗?
注意:这可能会影响哈希导航,但这都是 CSS
CSS
HTML
链接参考:
Would something like this work?
NOTE: this might affect the hash navigation but it's all CSS
CSS
HTML
Link reference:
您也可以尝试这种黄色淡入淡出技术解决方案: http://jsfiddle.net/xb8Km/
这是一个不错的解决方案因为您不必使用 :target,它是为可能干扰 jQuery Mobile ajax href 的锚点 href 构建的;它也不需要 jQuery UI 中的 .effect 函数,该函数不是为 jQuery mobile 设计的。
You could also try this yellow fade technique solution: http://jsfiddle.net/xb8Km/
Its a nice solution because you don't have to use :target, which is built for anchors hrefs that could interfere with jQuery Mobile ajax hrefs; it also doesn't need the .effect function from jQuery UI which is not designed for jQuery mobile.