javascript - There is a component flashing problem during vue development. How to solve it?
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-05-19 10:09:25
0
1
813

This is normal. When switching, the QR code box will not appear. I processed the QR code box by giving it a z-index:-1;
Let it be under the menu bar. , is not displayed, which is normal under other circumstances, but when the Chrome browser is opened on a Mac, a flashing problem will occur when switching components. It will appear the moment you click it, and then disappear.

曾经蜡笔没有小新
曾经蜡笔没有小新

reply all(1)
曾经蜡笔没有小新

The problem has been solved. The reason for this problem is that the rendering mechanism of z-index is different in different browsers (I don’t understand it either, someone else told me). The temporary solution is to use v-show to let qrbox display it when it needs to be displayed, but I would like to know more about how this compatibility problem occurs and how to solve it. . .

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template