我有以下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上的链接,为什么?

最佳答案

translateZ修复了此问题:

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


DEMO

关于css - 在CS3翻转后无法访问Div内容,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/24161915/

10-13 01:51