저는 HTML을 초보자입니다. 나는 상대적으로 위치 된 요소들에 대해 z-index
이 작동하는지 여부를 조사했고, 그것이 작동한다는 것을 발견했다.Z- 상대 위치 지정 용 인덱스
하지만 문제는 내가 쌓아 두지 않을 때입니다.
<style>
.div0{position:relative;top:0px;left:0px;width:100%;height:auto;z-index:1;}
.div1{position:relative;top:0px;left:0px;width:100%;height:auto;z-index:1;}
.div2{position:relative;top:0px;left:0px;width:100%;height:auto;z-index:2;}
</style>
</head>
<body>
<div class="div0">
<div class="div1">Text One</div>
<div class="div2">Text Two</div>
</div>
</body>
누적 된 것은 무엇입니까? –
@ Mr.Alien Z- 인덱스 순서에서 두 텍스트가 겹치는 텍스트 –
'position : relative; top : 0px; left : 0px;'div의 위치에 차이가 나타나지 않음 – Zword