html - 淡入并反射(reflect) CSS,不起作用

标签 html css reflection

我正在尝试做这样的事情 http://designshack.net/tutorialexamples/HoverEffects/Ex5.html,其中图像的反射显示在 下,但它不起作用。我已经完成检查元素,并相应地使用了他们的代码,但它在我的网站上不起作用。当我在自己的计算机上使用 Chrome 检查元素时,就是我看到反射的时候。如果您需要任何说明,请告诉我。这是我的代码 http://jsfiddle.net/srvcm/1

.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);
}

提前致谢

最佳答案

代码本身完美运行

关于html - 淡入并反射(reflect) CSS,不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13241673/

相关文章:

html - 使用 CSS 类会导致问题

html - MaterializeCSS 中的面板或组框?

c# - 项目之间的 Type.GetType() 可见性问题 (Visual C#)

c# - 设置可为 null 的日期时间的属性值

.net - 如何在不使用字符串名称的情况下引发 PropertyChanged 事件

html - 如何在 HTML 标签之外匹配 RegExp

javascript - 是否可以强制 div 占用屏幕的高度

html - 主页宽度与主题中的其他页面宽度不同

Android CSS 位置 :fixed after a device rotate

css - 这个 CSS 路径名是什么意思?