如何从 jquery 手风琴中删除活动轮廓? [英] How do I remove an active outline from jquery accordion?

查看:27
本文介绍了如何从 jquery 手风琴中删除活动轮廓?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Jquery 手风琴.活动链接有一个轮廓.我试过使用 css:

I am using Jquery Accordion. The active link has an outline. I have tried using css:

#accordion a:focus
 { outline: none; }
#accordion a:active 
{outline: none; font-weight:bold;}

还有

#accordion a:-moz-any-link:focus 
{ outline: none; }

这些似乎都不起作用.任何人都可以建议设置或其他选项来删除活动链接周围的虚线轮廓吗?

None of these seem to work. Can anyone advise a setting or another option to remove the dotted outline around the active links?

推荐答案

您需要弄清楚小部件应用的选项卡元素的类.例如,

You need to figure out the tab element's class being applied by the widget. For instance,

.ui-state-focus { outline: none; }

适用于最新版本的 jQuery UI,但在 1.6 等早期版本上,您需要使用:

works on the most recent version of jQuery UI, but on an earlier version like the 1.6, you'd need to use this:

.ui-accordion-header {outline: none;}

这篇关于如何从 jquery 手风琴中删除活动轮廓?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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