how can I implement a line with a physical size of 5cm on each mobile device?
how can I implement a line with a physical size of 5cm on each mobile device?
cm, mm, in, pt and pc in css are called absolute units. In theory, the rendering size of absolute units on any device is the same, but this cannot be done in practice. The actual effect is affected by the resolution of the device and the implementation of different browsers css. The display length of devices with high resolution is relatively accurate. The CSS committee abandoned the requirement for absolute units to display consistently on different settings in 2011, and now only requires accurate and consistent display on paper after being printed.
so your requirements cannot be met at the moment.
For more information, please refer to https://www.w3.org/Style/Exam....length units are cm-enabled
Previous: How is Nuxt deployed to a non-root directory?
Next: This dialog is blocked as soon as it is opened. How to get rid of this black shadow?