CSS3 阴影效果不适用于 zurb foundation

CSS3 Shadow effect not working with zurb foundation

我想在我的 zurb 基础项目中使用 this 阴影效果。我正在尝试将它应用于一行 class 但它不起作用。

这是我在 codepen 中的基础link

这是我正在尝试使用的阴影技巧

.effect2
{
  position: relative;
}
.effect2:before, .effect2:after
{
  z-index: -1;
  position: absolute;
  content: "";
  bottom: 15px;
  left: 10px;
  width: 50%;
  top: 80%;
  max-width:300px;
  background: #777;
  -webkit-box-shadow: 0 15px 10px #777;
  -moz-box-shadow: 0 15px 10px #777;
  box-shadow: 0 15px 10px #777;
  -webkit-transform: rotate(-3deg);
  -moz-transform: rotate(-3deg);
  -o-transform: rotate(-3deg);
  -ms-transform: rotate(-3deg);
  transform: rotate(-3deg);
}
.effect2:after
{
  -webkit-transform: rotate(3deg);
  -moz-transform: rotate(3deg);
  -o-transform: rotate(3deg);
  -ms-transform: rotate(3deg);
  transform: rotate(3deg);
  right: 10px;
  left: auto;
}

foundation 中的.row class 用于创建水平块以包含垂直列。事实上它甚至不可见。在您的情况下,您可以简单地将样式应用于行中的元素。

我更新了你的笔:

http://codepen.io/Robbert89/pen/EVqYXN

希望对您有所帮助!