在另一个上覆盖容器div

时间:2015-05-23 08:18:09

标签: jquery html css

When I click on close, the blue container hides and another small container is displayed, which is again used to display the hided container

small container

当我点击关闭时,蓝色容器会隐藏,并显示另一个小容器,再次用于显示隐藏容器。

但是,当显示小容器时,它还会显示一个白色条带。我不需要显示白色条带。相反,只有小容器必须显示在顶部,其中棕色容器是带背景图像的div

1 个答案:

答案 0 :(得分:0)

现在看起来您的箭头按钮设置为position: relative;,这会导致内容在其周围流动。

您可以使用position将箭头的absolute属性更改为top: XXpx;,以便清除标题栏,这也会停止显示的空白。如果您共享网址,我将能够根据您的确切代码更新我的答案。

相关问题