CSS 转换在 webkit 中有效,但在 FF 中无效

标签 css firefox google-chrome webkit css-transitions

我有一个下拉菜单的代码,在子菜单上有一个转换:

ul.menu ul {
        -moz-transition: visibility 0s linear .55s, opacity .55s linear 0s;
        -webkit-transition: visibility 0s linear .55s, opacity .55s linear 0s;
        -o-transition: visibility 0s linear .55s, opacity .55s linear 0s;
        transition: visibility 0s linear .55s, opacity .55s linear 0s;
        visibility: hidden;
        opacity: 0;}

ul.menu li:hover > ul {
        -moz-transition-delay:0s;
        -o-transition-delay:0s;
        -webkit-transition-delay:0s;
        transition-delay:0s;
        visibility: visible;
        opacity: 1; }

它在 Chrome 中正确显示但在 Firefox (7.0.1) 中不正确:为什么? 在另一个元素上改变背景颜色的另一个过渡效果很好,类似的过渡效果(www.greywyvern.com/?post=337 credit for the idea!)在 FF 中也同样有效。

最佳答案

因为这是一个 CSS3 函数,我认为它在 Firefox 中仍然不是一个有效的功能。查看this底部的兼容性表页面...尝试升级您的浏览器或使用替代转换。

关于CSS 转换在 webkit 中有效,但在 FF 中无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8065707/

相关文章:

javascript - 在 Puppeteer 中连接浏览器

jquery - 当以特定速度向上滚动页面的足够部分时显示标题

firefox - 从 Firefox 扩展在浏览器中加载动态创建的文档

html - 使用 CSS 从右到左 div 并在 5 秒后隐藏

linux - 从 shell 脚本中确定 Firefox 是否已呈现页面

firefox - Indexeddb - 我今天可以开始为其编码吗?

javascript - Chrome浏览器无法保存PDF

java - Vaadin 双击和浏览器行为

android - 如何防止样式表加载到移动设备中

jquery - Bootstrap 4 导航栏无法在 IE11 中正确呈现