如何将图片放在另一张图片后面?

时间:2013-07-12 09:10:41

标签: css z-index

I put twitter in behind facebook? tried using z-index, didnt work.如何{{1}}

http://jsfiddle.net/s4UpL

2 个答案:

答案 0 :(得分:0)

你走了。

<强> WORKING DEMO

守则:

#bg img{
    z-index: 100 !important;
    position:relative;
}

答案 1 :(得分:0)

一个重要的CSS要点是z-index仅适用于定位元素。

很抱歉,无法发布这条评论作为对Nathan Lee的回答。

相关问题