1. How did you draw your map? 2. If it is an ordinary p, it is ok to use relative positioning and absolute positioning 3. If it is drawn on canvas, just draw the corresponding copy prompt through x, y coordinates
What I understand about the question you asked is mobile terminal adaptation. There are many solutions. The rem solution used by Taobao is more recommended. For specific practices, you can refer to the multi-screen adaptation problem mentioned in this article. http://www.html-js.com/articl...
1. How did you draw your map?
2. If it is an ordinary p, it is ok to use relative positioning and absolute positioning
3. If it is drawn on canvas, just draw the corresponding copy prompt through x, y coordinates
Try using percentage targeting
It is recommended to use canvas coordinates for positioning, which is more accurate
It is recommended to use rem units, margin percentage + position positioning has compatibility issues in mobile UC browsers
1. Use <meta name="viewport"> to define the device width
2. Use position, and then calculate the percentage position
What I understand about the question you asked is mobile terminal adaptation. There are many solutions. The rem solution used by Taobao is more recommended. For specific practices, you can refer to the multi-screen adaptation problem mentioned in this article.
http://www.html-js.com/articl...