2014-02-21 118 views

回答

3

最簡單的解決方案是將.background-image放在所有其他元素的後面。 ​​

.background-image { 
    z-index: -1; 
} 

或將#test上述.background-image

#test { 
    position: relative; 
    z-index: 2; 
} 

兩種方式都做工精細。

1

#test沒有變得模糊。由於.background-image5px模糊,因此它會影響周圍的5px