Css box-shadow 在 firefox 中不工作

标签 css

为什么这个 box-shadow 在 firefox 中不起作用.. 但它在 chrome 中显示阴影..

    #slideshow { 
        margin: 80px auto; 
        position: relative; 
        width: 701px; 
        height: 321px; 
        padding: 10px; 
        box-shadow: 0 0 20px rgba(0,0,0,0.4);
    }

    #slideshow > div { 
        position: absolute; 
        top: 10px; 
        left: 10px; 
        right: 10px; 
        bottom: 10px; 
    }

我也给了重要但没有工作.. 我为此使用 jquery slider .. 所以我认为 html 结构在某种程度上搞砸了定位。

任何想法..

谢谢!

最佳答案

您好,像这样申请浏览器套件

firefox and chrome

-

-moz-box-shadow: 0 0 20px rgba(0,0,0,0.4); 
-webkit-box-shadow: 0 0 20px rgba(0,0,0,0.4); 
box-shadow: 0 0 20px rgba(0,0,0,0.4);

关于Css box-shadow 在 firefox 中不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10848366/

相关文章:

在 Debug模式下加载浏览器扩展时不应用 CSS 样式 (reactjs)

css - 在容器上创建居中的半圆形切口

javascript - 是否可以将 CSS 应用于字符的一半?

css - wordpress CSS 中的问题居中导航

javascript - 如何使用jquery在子菜单下动态添加子菜单?

html - 填充两个静态大小的 div 之间的空间

html - 我如何为移动设备居中 img?

html - Menuitem - CSS 事件状态不工作

html - DIV 中的文本卡在底部

jquery - 将悬停事件(光标指针属性)添加到主体而不是其子项