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

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

问题描述

我正在使用Jquery Accordion。活动链接具有轮廓。
我尝试过使用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天全站免登陆