0
所以我試着把正Z指數放在身體元素上面,但它仍然沒有顯示圖像。視差圖像不顯示data-img-src?
h1 class="center">Parallax Effect Tutorial</h1>
<div class="parallax-window" data-parallax="scroll" data-image-src="./Home_BG.jpg" style="z-index: 100;"></div>
我的CSS:
body {}
.center {
text-align: center;
}
.parallax-window {
min-height: 400px;
background: transparent;
z-index: 100 !important;
}