Z- इंडेक्स के बारे में आपको किसी ने क्या नहीं बताया


Z- इंडेक्स के साथ समस्या यह है कि बहुत से लोग समझ नहीं पाते हैं कि यह कैसे काम करता है।
नीचे वर्णित सब कुछ W3C विनिर्देश में है। दुर्भाग्य से, हर कोई इसे नहीं पढ़ता है।

समस्या का विवरण:


तो, आइए हम HTML कोड को 3 .
. , , : , , . , , . z-index , 1, z-index .

HTML css .
<div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
.red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
jsfiddle

: , , :
HTML / z-index /

:
, ( ).
css, :
div:first-child { opacity: .99; }


jsfiddle

, - . ? ? ? !
, .

:
Z-index : , , .. z-index 5 z-index 2, ? .
z-index. , .

HTML , . . , , , , .

z-index , : HTML. ( , , )

( ), . ( « » – , , : , ).

, , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


, . z-index .

HTML . , . , , , z-index .

:
– ( )
z-index auto
1
युक्त करें .
. , , : , , . , , . z-index , 1, z-index .

HTML css .
<div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
.red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
jsfiddle

: , , :
HTML / z-index /

:
, ( ).
css, :
div:first-child { opacity: .99; }


jsfiddle

, - . ? ? ? !
, .

:
Z-index : , , .. z-index 5 z-index 2, ? .
z-index. , .

HTML , . . , , , , .

z-index , : HTML. ( , , )

( ), . ( « » – , , : , ).

, , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


, . z-index .

HTML . , . , , , z-index .

:
– ( )
z-index auto
1
.
. , , : , , . , , . z-index
, 1, z-index .

HTML css .
<div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
.red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
jsfiddle

: , , :
HTML / z-index /

:
, ( ).
css, :
div:first-child { opacity: .99; }


jsfiddle

, - . ? ? ? !
, .

:
Z-index : , , .. z-index 5 z-index 2, ? .
z-index. , .

HTML , . . , , , , .

z-index , : HTML. ( , , )

( ), . ( « » – , , : , ).

, , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


, . z-index .

HTML . , . , , , z-index .

:
– ( )
z-index auto
1
 . 
. , , : , , . , , . z-index
, 1, z-index .

HTML css .
<div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
.red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
jsfiddle

: , , :
HTML / z-index /

:
, ( ).
css, :
div:first-child { opacity: .99; }


jsfiddle

, - . ? ? ? !
, .

:
Z-index : , , .. z-index 5 z-index 2, ? .
z-index. , .

HTML , . . , , , , .

z-index , : HTML. ( , , )

( ), . ( « » – , , : , ).

, , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


, . z-index .

HTML . , . , , , z-index .

:
– ( )
z-index auto
1
.
. , , : , , . , , . z-index
, 1, z-index .

HTML css .
<div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
.red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
jsfiddle

: , , :
HTML / z-index /

:
, ( ).
css, :
div:first-child { opacity: .99; }


jsfiddle

, - . ? ? ? !
, .

:
Z-index : , , .. z-index 5 z-index 2, ? .
z-index. , .

HTML , . . , , , , .

z-index , : HTML. ( , , )

( ), . ( « » – , , : , ).

, , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


, . z-index .

HTML . , . , , , z-index .

:
– ( )
z-index auto
1
 . 
. , , : , , . , , . z-index
, 1, z-index .

HTML css .
<div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
.red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
jsfiddle

: , , :
HTML / z-index /

:
, ( ).
css, :
div:first-child { opacity: .99; }


jsfiddle

, - . ? ? ? !
, .

:
Z-index : , , .. z-index 5 z-index 2, ? .
z-index. , .

HTML , . . , , , , .

z-index , : HTML. ( , , )

( ), . ( « » – , , : , ).

, , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


, . z-index .

HTML . , . , , , z-index .

:
– ( )
z-index auto
1
.
. , , : , , . , , . z-index
, 1, z-index .

HTML css .
<div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
.red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
jsfiddle

: , , :
HTML / z-index /

:
, ( ).
css, :
div:first-child { opacity: .99; }


jsfiddle

, - . ? ? ? !
, .

:
Z-index : , , .. z-index 5 z-index 2, ? .
z-index. , .

HTML , . . , , , , .

z-index , : HTML. ( , , )

( ), . ( « » – , , : , ).

, , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


, . z-index .

HTML . , . , , , z-index .

:
– ( )
z-index auto
1
 . 
. , , : , , . , , . z-index
, 1, z-index .

HTML css .
<div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
.red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
jsfiddle

: , , :
HTML / z-index /

:
, ( ).
css, :
div:first-child { opacity: .99; }

jsfiddle

, - . ? ? ? !
, .

:
Z-index : , , .. z-index 5 z-index 2, ? .
z-index. , .

HTML , . . , , , , .

z-index , : HTML. ( , , )

( ), . ( « » – , , : , ).

, , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


, . z-index .

HTML . , . , , , z-index .

:
– ( )
z-index auto
1
    .
    . , , : , , . , , . z-index
    , 1, z-index .

    HTML css .
    <div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
    .red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
    jsfiddle

    : , , :
    HTML / z-index /

    :
    , ( ).
    css, :
    div:first-child { opacity: .99; }

    jsfiddle

    , - . ? ? ? !
    , .

    :
    Z-index : , , .. z-index 5 z-index 2, ? .
    z-index. , .

    HTML , . . , , , , .

    z-index , : HTML. ( , , )

    ( ), . ( « » – , , : , ).

    , , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


    , . z-index .

    HTML . , . , , , z-index .

    :
    – ( )
    z-index auto
    1
  • .
    . , , : , , . , , . z-index
    , 1, z-index .

    HTML css .
    <div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
    .red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
    jsfiddle

    : , , :
    HTML / z-index /

    :
    , ( ).
    css, :
    div:first-child { opacity: .99; }

    jsfiddle

    , - . ? ? ? !
    , .

    :
    Z-index : , , .. z-index 5 z-index 2, ? .
    z-index. , .

    HTML , . . , , , , .

    z-index , : HTML. ( , , )

    ( ), . ( « » – , , : , ).

    , , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


    , . z-index .

    HTML . , . , , , z-index .

    :
    – ( )
    z-index auto
    1
    .
    . , , : , , . , , . z-index
    , 1, z-index .

    HTML css .
    <div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
    .red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
    jsfiddle

    : , , :
    HTML / z-index /

    :
    , ( ).
    css, :
    div:first-child { opacity: .99; }

    jsfiddle

    , - . ? ? ? !
    , .

    :
    Z-index : , , .. z-index 5 z-index 2, ? .
    z-index. , .

    HTML , . . , , , , .

    z-index , : HTML. ( , , )

    ( ), . ( « » – , , : , ).

    , , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


    , . z-index .

    HTML . , . , , , z-index .

    :
    – ( )
    z-index auto
    1
  • .
    . , , : , , . , , . z-index
    , 1, z-index .

    HTML css .
    <div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
    .red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
    jsfiddle

    : , , :
    HTML / z-index /

    :
    , ( ).
    css, :
    div:first-child { opacity: .99; }

    jsfiddle

    , - . ? ? ? !
    , .

    :
    Z-index : , , .. z-index 5 z-index 2, ? .
    z-index. , .

    HTML , . . , , , , .

    z-index , : HTML. ( , , )

    ( ), . ( « » – , , : , ).

    , , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


    , . z-index .

    HTML . , . , , , z-index .

    :
    – ( )
    z-index auto
    1
    .
    . , , : , , . , , . z-index
    , 1, z-index .

    HTML css .
    <div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
    .red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
    jsfiddle

    : , , :
    HTML / z-index /

    :
    , ( ).
    css, :
    div:first-child { opacity: .99; }

    jsfiddle

    , - . ? ? ? !
    , .

    :
    Z-index : , , .. z-index 5 z-index 2, ? .
    z-index. , .

    HTML , . . , , , , .

    z-index , : HTML. ( , , )

    ( ), . ( « » – , , : , ).

    , , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


    , . z-index .

    HTML . , . , , , z-index .

    :
    – ( )
    z-index auto
    1
  • .
    . , , : , , . , , . z-index
    , 1, z-index .

    HTML css .
    <div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
    .red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
    jsfiddle

    : , , :
    HTML / z-index /

    :
    , ( ).
    css, :
    div:first-child { opacity: .99; }

    jsfiddle

    , - . ? ? ? !
    , .

    :
    Z-index : , , .. z-index 5 z-index 2, ? .
    z-index. , .

    HTML , . . , , , , .

    z-index , : HTML. ( , , )

    ( ), . ( « » – , , : , ).

    , , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


    , . z-index .

    HTML . , . , , , z-index .

    :
    – ( )
    z-index auto
    1
    .
    . , , : , , . , , . z-index
    , 1, z-index .

    HTML css .
    <div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
    .red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
    jsfiddle

    : , , :
    HTML / z-index /

    :
    , ( ).
    css, :
    div:first-child { opacity: .99; }

    jsfiddle

    , - . ? ? ? !
    , .

    :
    Z-index : , , .. z-index 5 z-index 2, ? .
    z-index. , .

    HTML , . . , , , , .

    z-index , : HTML. ( , , )

    ( ), . ( « » – , , : , ).

    , , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


    , . z-index .

    HTML . , . , , , z-index .

    :
    – ( )
    z-index auto
    1
.
. , , : , , . , , . z-index
, 1, z-index .

HTML css .
<div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
.red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
jsfiddle

: , , :
HTML / z-index /

:
, ( ).
css, :
div:first-child { opacity: .99; }

jsfiddle

, - . ? ? ? !
, .

:
Z-index : , , .. z-index 5 z-index 2, ? .
z-index. , .

HTML , . . , , , , .

z-index , : HTML. ( , , )

( ), . ( « » – , , : , ).

, , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


, . z-index .

HTML . , . , , , z-index .

:
– ( )
z-index auto
1

.
. , , : , , . , , . z-index
, 1, z-index .

HTML css .
<div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
.red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
jsfiddle

: , , :
HTML / z-index /

:
, ( ).
css, :
div:first-child { opacity: .99; }

jsfiddle

, - . ? ? ? !
, .

:
Z-index : , , .. z-index 5 z-index 2, ? .
z-index. , .

HTML , . . , , , , .

z-index , : HTML. ( , , )

( ), . ( « » – , , : , ).

, , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


, . z-index .

HTML . , . , , , z-index .

:
– ( )
z-index auto
1

.
. , , : , , . , , . z-index
, 1, z-index .

HTML css .
<div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
.red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
jsfiddle

: , , :
HTML / z-index /

:
, ( ).
css, :
div:first-child { opacity: .99; }


jsfiddle

, - . ? ? ? !
, .

:
Z-index : , , .. z-index 5 z-index 2, ? .
z-index. , .

HTML , . . , , , , .

z-index , : HTML. ( , , )

( ), . ( « » – , , : , ).

, , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


, . z-index .

HTML . , . , , , z-index .

:
– ( )
z-index auto
1
.
. , , : , , . , , . z-index
, 1, z-index .

HTML css .
<div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
.red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
jsfiddle

: , , :
HTML / z-index /

:
, ( ).
css, :
div:first-child { opacity: .99; }


jsfiddle

, - . ? ? ? !
, .

:
Z-index : , , .. z-index 5 z-index 2, ? .
z-index. , .

HTML , . . , , , , .

z-index , : HTML. ( , , )

( ), . ( « » – , , : , ).

, , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


, . z-index .

HTML . , . , , , z-index .

:
– ( )
z-index auto
1

.
. , , : , , . , , . z-index
, 1, z-index .

HTML css .
<div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
.red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
jsfiddle

: , , :
HTML / z-index /

:
, ( ).
css, :
div:first-child { opacity: .99; }


jsfiddle

, - . ? ? ? !
, .

:
Z-index : , , .. z-index 5 z-index 2, ? .
z-index. , .

HTML , . . , , , , .

z-index , : HTML. ( , , )

( ), . ( « » – , , : , ).

, , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


, . z-index .

HTML . , . , , , z-index .

:
– ( )
z-index auto
1

.
. , , : , , . , , . z-index
, 1, z-index .

HTML css .
<div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
.red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
jsfiddle

: , , :
HTML / z-index /

:
, ( ).
css, :
div:first-child { opacity: .99; }


jsfiddle

, - . ? ? ? !
, .

:
Z-index : , , .. z-index 5 z-index 2, ? .
z-index. , .

HTML , . . , , , , .

z-index , : HTML. ( , , )

( ), . ( « » – , , : , ).

, , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


, . z-index .

HTML . , . , , , z-index .

:
– ( )
z-index auto
1

.
. , , : , , . , , . z-index
, 1, z-index .

HTML css .
<div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
.red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
jsfiddle

: , , :
HTML / z-index /

:
, ( ).
css, :
div:first-child { opacity: .99; }


jsfiddle

, - . ? ? ? !
, .

:
Z-index : , , .. z-index 5 z-index 2, ? .
z-index. , .

HTML , . . , , , , .

z-index , : HTML. ( , , )

( ), . ( « » – , , : , ).

, , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


, . z-index .

HTML . , . , , , z-index .

:
– ( )
z-index auto
1

.
. , , : , , . , , . z-index
, 1, z-index .

HTML css .
<div> <span class="red">Red</span> </div> <div> <span class="green">Green</span> </div> <div> <span class="blue">Blue</span> </div>
.red, .green, .blue { position: absolute; } .red { background: red; z-index: 1; } .green { background: green; } .blue { background: blue; }
jsfiddle

: , , :
HTML / z-index /

:
, ( ).
css, :
div:first-child { opacity: .99; }


jsfiddle

, - . ? ? ? !
, .

:
Z-index : , , .. z-index 5 z-index 2, ? .
z-index. , .

HTML , . . , , , , .

z-index , : HTML. ( , , )

( ), . ( « » – , , : , ).

, , z-index . , , z-index z-index, z-index z-index, . , z-index . z-index , . , z-index . , , ?


, . z-index .

HTML . , . , , , z-index .

:
– ( )
z-index auto
1


Source: https://habr.com/ru/post/In166435/


All Articles