为什么当我的桌面屏幕和手机屏幕具有相同的分辨率不也显示同样的事情? [英] Why when my desktop screen and mobile screen have the same resolution don't they display the same thing?

查看:136
本文介绍了为什么当我的桌面屏幕和手机屏幕具有相同的分辨率不也显示同样的事情?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,我的一个桌面我的50像素宽的按钮中的一个我的桌面上查看它看起来像它占据了屏幕空间约5%的预期。但具有相同的水平分辨率在Android设备上查看时,它看起来像它占有15%左右。

For example, one my desktop one of my 50px wide button is viewed on my desktop it looks like it occupies about 5% of the screen space as expected. But when viewed on my Android device with the same horizontal resolution it looks like it occupies about 15%.

任何人都可以解释为什么这是和我能做些什么来阻止它?

Can anyone explain why this is and what I can do to stop it?

推荐答案

不同的显示器有不同的像素大小。你听到这个引用为DPI,或点每英寸,这在物理上是多少像素每英寸有。在你的情况,你的桌面上有比你的Andr​​oid设备(高DPI)小像素,所以50像素占用较少的物理空间。

Different displays have different pixel sizes. You hear this referenced as DPI, or dots-per-inch, which is physically how many pixels there are per inch. In your case, your desktop has smaller pixels than your Android device (higher DPI), so the 50px takes up less physical space.

您可以通过指定物理尺寸,如厘米解决这个问题。查看规范

You can fix this by specifying a physical size, such as cm or in. Check out the spec.

这篇关于为什么当我的桌面屏幕和手机屏幕具有相同的分辨率不也显示同样的事情?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆