Mobile: the execution of the animation of css3 affects the elements that the fixed locates to its upper layer

< H2 > problem description: < / H2 >

use bootstrap to practice responsive web page development. When you want to animate an element with a background image, it is found that the animation will have an impact on the elements that are located above it with position:fixed; .
found that in the process of animation, the elements that should be in the lower level run to the level of fixed positioning elements. It took hours to find out the cause in many ways, but still couldn"t find the problem. I hope you will not hesitate to give us your advice. Thank you in advance.

< H2 > problem status chart: < / H2 >

clipboard.png

clipboard.png

clipboard.png

clipboard.png

Photo caption: the button in the upper right corner of the
picture uses the element of position:fixed . Below it is a div that needs animation, and the transparency animation of div will also affect this button.

< H2 > Code < / H2 >

    $(function ($) {
      $("body").niceScroll()
    })
  </script>
</body>

</html>

those who want to know the reason can tell me the principle, and those who know the solution can also tell ~
(I found that I wrapped the html code in a code block but didn"t highlight it at all? )


emmm. It is also quite speechless, but I can't find it when I look for the cause of this problem, but I happen to solve this problem when solving other problems.
the solution is as follows:
because the button located by fixed belongs to the nav tag, while the div below it belongs to another parent tag. When the level of div is raised during the animation, it happens to be larger than the level of nav , so the button label is covered by div . The solution can be to add the attribute z-index to the nav tag, which can be solved by ensuring that its value is greater than the value of div animation.
also do not know whether the explanation is correct or not. If it is wrong, I hope you will correct it.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b334bf-2b5fd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b334bf-2b5fd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?