테스트 사이트 - 개발 중인 베타 버전입니다

css position Overlapping Elements(겹치는 요소들)

Overlapping Elements(겹치는 요소들)

 

 

요소가 배치되면 다른 요소와 겹칠 수 있습니다.

 

이 z-index속성은 요소의 스택 순서를 지정합니다.이 요소는 다른 요소의 앞에 또는 뒤에 있어야합니다.

 

요소는 양수 또는 음수 스택 순서를 가질 수 있습니다.

 


 

 

img {

    position: absolute;

    left: 0px;

    top: 0px;

    z-index: -1;

}

 

 

 

<!DOCTYPE html>

<html>

<head>

<style>

img {

    position: absolute;

    left: 0px;

    top: 0px;

    z-index: -1;

}

</style>

</head>

<body>

 

<h1>This is a heading</h1>

<img src="w3css.gif" width="100" height="140">

<p>Because the image has a z-index of -1, it will be placed behind the text.</p>

 

</body>

</html>



댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
2982
2981
2980
2979
2978
2977
2976
2975
2974
2973
2972
2971
2970
2969
2968
2967
2966
2965
2964
2963
2962
2961
2960
2959
2958
2957
2956
2955
2954
2953