在css3翻转后无法访问Div内容

时间:2014-06-11 11:36:09

标签: css css3

我有以下jsfiddle:

http://jsfiddle.net/wcZq7/

CSS:

.boxcontainer {
  perspective: 1000;
}

/* flip the pane when hovered */
.boxcontainer.hover .boxcard {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.boxcontainer, .front, .back {
  width: 320px;
  height: 480px;
}

/* flip speed goes here */
.boxcard {
  transition: 0.6s;
  -webkit-transition: 0.6s;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  position: relative;
}

/* hide back of pane during swap */
.front, .back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

/* front pane, placed above back */
.front {
  z-index: 2;
}

/* back, initially hidden pane */
.back {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

点击翻转链接一次后,我无法点击'后面的链接。 div,为什么会这样?

1 个答案:

答案 0 :(得分:0)

translateZ解决了这个问题:

.back {
  transform: rotateY(180deg) translateZ(200px);
  -webkit-transform: rotateY(180deg) translateZ(1px);
}

DEMO