CSS属性显示一个面板或一个部门与另一个部门重叠 [英] CSS property to show one panel or a division overlapping another division
问题描述
我有一个分区,其中有一个图像。这可以作为通知图像。
当我点击此图片时,会出现一个面板,显示不同的通知。
但问题我我面临的是,分区内的面板,不能覆盖在屏幕上的其他元素上。它就像是facebook通知中心,点击好友请求按钮,面板显示下来,它与聊天面板重叠和墙壁。
有人可以帮我这个。!!
谢谢!
I have a division in which there is an image. This serves as a notification image.
When i Click this image,a panel appears which shows the different notifications.
But the problem i am facing is that the panel which is inside a division, cannot be overlaped over other elements present on the screen.It is something like a facebook notification center, where on clicking the friend request button, a panel appears down and it overlaps the chat panel and the wall.
Can somebody please help me with this.!!
Thanks!
推荐答案
将第二个分区css属性设置为
set the second division css property to
.mydiv
{
position:absolute;
}
然后更改保证金属性。
then change the margin property .
主题通常称为CSS定位。以下页面涵盖了您需要的一切。 (不要偷懒,阅读整页)。
http://www.w3schools.com/css/css_positioning.asp [ ^ ]
The subject is often called "CSS positioning". The following page covers everything you need. (Don't be lazy, read the whole page).
http://www.w3schools.com/css/css_positioning.asp[^]
这篇关于CSS属性显示一个面板或一个部门与另一个部门重叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!