开发者

jQuery hide/show <div> element appearing behind image

开发者 https://www.devze.com 2022-12-17 06:54 出处:网络
I have a div with a height of 35 pixels and a hidden div with a height of 200 pixels. I have a jQuery function which hides the smaller div and shows the larger div when clicked. This all works fine.

I have a div with a height of 35 pixels and a hidden div with a height of 200 pixels. I have a jQuery function which hides the smaller div and shows the larger div when clicked. This all works fine.

The problem is, when the larger appears it is behind an image which is below开发者_如何学C it. I have set the z-index of all affected object to no avail.

Any ideas how I can get this back?

TIA


Added position:relative to the div's and all was well in the world!

0

精彩评论

暂无评论...
验证码 换一张
取 消