开发者

image pop up problem

开发者 https://www.devze.com 2023-04-06 19:15 出处:网络
When you hover or click on an image within the w开发者_Python百科ebpage a pop up appears. However, this new pop up image is hidden behind the div to the right. Is there any way of bringing it forward

When you hover or click on an image within the w开发者_Python百科ebpage a pop up appears. However, this new pop up image is hidden behind the div to the right. Is there any way of bringing it forward so it is visible instead? Thanks in advance.

Paul


The div with more z-index will appear above the the one with lower z-index. Add z-index to your style class or quote as inline style to the div;

.in_style {
background-color: #E0EAF1;
white-space: nowrap;
z-index: 300;
}
 or
<div id='upperDiv' style='z-index:300;'>

        Your contents

</div>
0

精彩评论

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