Position fixed don't pass over some elements

对着背影说爱祢 提交于 2019-12-13 06:56:06

问题


I have a div with the fixed:postion property, when I scroll the page, the bar doesń'n pass over some elementes, Images and others. How can I do it with no modify the other elements? This is the page: NotiNews, check the upper bar, contains a clock and a google translate script


回答1:


Apply a z-index inside the "encabezado" class on your stylesheet, like so:

.encabezado {
    z-index: 99;
}

Hope this helps you out!




回答2:


Give your div a z-index property. Start with 100.

eg.

z-index: 100;



回答3:


Set its "z-index" property to a high value, that would step over any other element.



来源:https://stackoverflow.com/questions/21917061/position-fixed-dont-pass-over-some-elements

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!