0

我正在尝试做这样的事情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);
}

先感谢您

4

1 回答 1

0

代码自行完美运行

于 2012-11-05T23:11:31.633 回答