html - -webkit-box-reflect - FireFox 的 CSS

标签 html css internet-explorer

我正在尝试做这样的事情 http://designshack.net/tutorialexamples/HoverEffects/Ex5.html,其中图像的反射显示在 下,但是它不适用于 IE 或火狐。这是我的代码 http://jsfiddle.net/srvcm/1/有什么技巧可以让 Firefox 做到这一点吗?

 .ex img {
        <!--margin: 25px;-->
        opacity: 0.9;
        border: 1px solid #eee;

        /*Transition*/
        -webkit-transition: all 0.5s ease;
        -moz-transition: all 0.5s ease;
        -o-transition: all 0.5s ease;

        /*Reflection*/
        -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(.7, transparent), to(rgba(0,0,0,0.1)));


    }


    .ex img:hover {  
       opacity: 1;

       /*Reflection*/
      -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(.7, transparent), to(rgba(0,0,0,0.7)));

       /*Glow*/
      -webkit-box-shadow: 0px 0px 20px rgba(255,255,255,0.8);
      -moz-box-shadow: 0px 0px 20px rgba(255,255,255,0.8);
      box-shadow: 0px 0px 20px rgba(255,255,255,0.8);
    }

提前致谢

最佳答案

http://caniuse.com/#search=box-ref <- 该属性似乎缺乏跨浏览器兼容性

关于html - -webkit-box-reflect - FireFox 的 CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13246409/

相关文章:

html - 使用 css 进行图像 mask

javascript - 如何使用 javascript 从 ruby​​ on rails 获取数据

javascript - 折叠在 IE11 上不起作用(Object.keys : argument is not an Object)

html - ipad img 缩放 css 错误

javascript - 带按钮的 Toggle() 方法

css - 在文本进入第二行之前,使包含文本的 div 填充到父宽度

javascript - 更改 CSS div 样式(有条件的?)

html - 带有水平子菜单的 CSS 垂直菜单

html - 某些内容不会在 IE 中显示?

javascript - 这个 comment/*@cc_on!@*/0 在 javascript 的 if 语句中做什么?