html - Div disappearing until I scroll in Opera -


I'm coding a webpage, and I have a problem with the disappearance of a device in Opera and Maxthon Browser (Firefox Works fine with)).

The devil is a fixed menu that slides along the window's scroll, but when it clicks on a link it scrolls down, but sometimes it disappears when Until that I do not scroll again.

I only use HTML and CSS, I do not know JavaScript or anything, but it is very annoying. Is there any way to fix this?

Relevant code:

HTML:

  & lt; Div id = "menu" & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "about #" & gt; About us & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#March" & gt; Merchandise & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "# contact" & gt; Contact us & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt;  

CSS:

  # menu {status: fixed; Margin-left: 5px; Margin-top: 10px; Width: 14%; Height: 100 pixels; Border: 3px red solid; Background: white; Z-index: 100; } # Menu UL {status: absolute; Swim left; }  

change your status to left and Top instead of the margin .

  # menu {status: fixed; Left: 5px; Top: 10px; Width: 14%; Height: 100 pixels; Border: 3px red solid; Background: white; Z-index: 100; }   Update  

I search something, and it seems that this is a known opera bug.

A functioning is to constantly animate some assets which does not mess with your layout, but the engine causes the element to be reproduced, using CSS animation and Nearly non-existent shadow has resolved the problem with box-shadow targeting.

  # menu {status: fixed; Margin-left: 5px; Margin-top: 10px; Width: 14%; Height: 100 pixels; Border: 3px red solid; Background color: white; Z-index: 100; Webkit-Animation: Nop 0.1 S Infinity; / * Fix for Maxthon * / Animation: Nop 0.1 S Infinite; For Opera / * Fix * /} @keyframes noop {/ * Fix for Opera / / 0% {Box-Shadow: 0 0 0 RGBA (0,0,0,0.1); } 100% {box-shadow: 0 0 1 px RGBA (0,0,0,0.1.1); }} @ -webkit-keyframes noop {/ * fixed for maximum * / 0% {box-shadow: 0 0 0 RGBA (0,0,0,0.1); } 100% {box-shadow: 0 0 1 px RGBA (0,0,0,0.1.1); }}  

( There is a delay before starting an animation in my opera, if you start clicking immediately, then a delay before deciding this problem for the first time Another solution is to upgrade Opera ( as it is now v21 ) ).


Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -