Study notes-the bug encountered when debugging the uni-app project by the night god simulator

When debugging uni-app projects using the Yagami simulator, I encountered some bugs because I was not very familiar with the Yagami simulator.


1. The APP page zoom problem on the Night God Simulator:

Problem: When I use the Night God Simulator, I encountered the problem of zooming in on the APP page. The page font has also become very large, and the page style is all messed up.

Solution: This is due to the setting of the night god simulator, don't doubt your own code. Of course, if your code is adapted to the phone or tablet, there is nothing to say.

The reason for this problem is that there is a problem with a configuration called DPI.

DPI: DPI is a unit of measurement, definition: the number of pixels per inch of the image.

In the night god simulator, the default is around 300, but we need to jump to around 150 and it's almost the same.

 

 


The above are some of the problems I encountered when debugging uni-app projects using the Night God simulator. The project keeps on and the bug keeps on.

Guess you like

Origin blog.csdn.net/qq_41339126/article/details/113396203