本文介绍了位置固定不能超过一些元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个div与固定:postion属性,当我滚动页面,酒吧不通过一些元素,图像和其他人。我怎么做,没有修改其他元素?这是该页:,请检查上部栏,包含时钟和google翻译脚本

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

推荐答案

在样式表的encabezado类中应用z-index,如下:

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

.encabezado {
    z-index: 99;
}

希望这可以帮助你!

这篇关于位置固定不能超过一些元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 04:57
查看更多