2014-07-23 32 views

回答

1

好吧,我加了4點新的ID在你的HTML的DIV

<div class="wrapper" id="test1">Lorem... 
<div class="wrapper" id="test2">Lorem... 
<div class="wrapper" id="test3">Lorem... 
<div class="wrapper" id="test4">Lorem... 

,並將此新的CSS:

#test1 { 
    z-index:40; 
} 
#test2 { 
    z-index:30; 
} 
#test3 { 
    z-index:20; 
} 
#test4 { 
    z-index:10; 
} 

DEMO這裏:jsFiddle

+1

你的jsFiddle與我的沒有什麼不同(z-index沒有效果) –

+0

@VitaliyHayda我的改變是在Firefox中工作,但只是檢查,它不在safari和chrome中工作。我會仔細看看。 – totallytotallyamazing

+0

@VitaliyHayda這應該有希望滿足您的期望。我這次測試了FF,Chrome,Safari和Opera。 – totallytotallyamazing