【问题标题】:Stop flickering in jquery-ui dropdown停止在 jquery-ui 下拉菜单中闪烁
【发布时间】:2013-09-28 03:42:27
【问题描述】:

我的页面上有一个 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 建议?

【问题讨论】:

    标签: css jquery-ui css-transitions flicker


    【解决方案1】:
    a {
        text-decoration: underline;
        color: #50444a;
        border-bottom-color: #ab939f;
    }
    

    删除了过渡,效果很好!

    jsFiddle

    【讨论】:

    • 在示例中很好用,只是在我的网站上不行
    • 您可以使用 chrome 开发者工具查看适用于该对象/元素的所有样式
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-12-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-02-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多