css - 停止在 jquery-ui 下拉菜单中闪烁

标签 css jquery-ui css-transitions flicker

我的页面上有一个 jquery-ui 下拉菜单,通常链接使用平滑过渡,现在我发现在 FF 中,当我将鼠标悬停在不同的选项上时,下拉菜单实际上会闪烁。

参见 http://jsfiddle.net/EBduF/495/

a {
text-decoration: underline;
-webkit-transition: all 300ms ease-in-out;
-moz-transition: all 300ms ease-in-out;
-o-transition: all 300ms ease-in-out;
-ms-transition: all 300ms ease-in-out;
transition: all 300ms ease-in-out;
color: #50444a;
border-bottom-color: #ab939f;
}

我不确定要添加什么 css 来防止过渡效果影响 jquery-ui 建议?

最佳答案

a {
    text-decoration: underline;
    color: #50444a;
    border-bottom-color: #ab939f;
}

删除了过渡,效果非常好!

jsFiddle

关于css - 停止在 jquery-ui 下拉菜单中闪烁,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19037169/

相关文章:

jquery - 选项卡小部件实例没有这样的方法 'add'

css - 我想同时淡入和旋转

html - iOS 10 : uncertain freezing during scroll of HTML list styled with -webkit-overflow-scrolling: touch

php - float 标签在 yii2 中不起作用

javascript - 如何阻止切换更改侧导航栏的宽度?

javascript - 如何获取拖动元素所在的元素的对象?

html - Internet Explorer 和 Chrome 的格式问题

jquery - ui jquery 可拖动元素

javascript - 如何使列表平滑过渡

jquery - 为什么这个 toggleClass 不起作用?