문제

DEMO

The idea now is to (instead of transp. .png images) fill the layers with standard HTML elements, like making a nice moving 2d-3d page.

You can guess my first problem. Whatever I tried I cannot make the click event go through the 100x100% div layers to find a clickable (or else?) element that is not the .layer himself.

Maybe making the layers height:0px; position:absolute; and than appending to them relative positioned elements?

도움이 되었습니까?

해결책

Just add a z-index CSS property to the .box elements. The higher the z-index, the higher the elements appear in terms of layers (i.e. elements with a z-index of 999 will be abover those with a z-index of 1):

.box {
  ...

  z-index: 2;
}

And a demo.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top