[英]CSS - Navigation menu hover causing flickering effect
Please take a look at this page: http://www.staging.turtlerush.co.uk/sumas/ 请看一下此页面: http : //www.staging.turtlerush.co.uk/sumas/
The Nav / Sub Nav CSS seems to be causing the hover menu to flicker in all cases EXCEPT when the page is fully scrolled to the top. 除了页面完全滚动到顶部之外,在所有情况下,Nav / Sub Nav CSS似乎都会导致悬浮菜单闪烁。 So in other words, it works at first but as you scroll down the flickering starts. 因此,换句话说,它首先起作用,但随着您向下滚动,闪烁开始。
I believe this is a problem with the nav ui element "clashing" with another but am struggling to fix..... 我认为这是导航ui元素与另一个“冲突”的问题,但正在努力解决.....
Probably a bit too much code to just paste in here but happy to if needed. 可能有太多代码无法将其粘贴到此处,但如果需要的话可以满意。
Any help? 有什么帮助吗?
Add this CSS code to .kopa-background
: 将此CSS代码添加到.kopa-background
:
.kopa-background {
pointer-events: none;
}
pointer events specify what to do when you click on the element. 指针事件指定单击元素时的操作。
This is a little explanation of this CSS property: https://css-tricks.com/almanac/properties/p/pointer-events/ 这是对此CSS属性的一些解释: https : //css-tricks.com/almanac/properties/p/pointer-events/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.