What's dp (density independent pixels) units with CSS?

前端 未结 8 1339
陌清茗
陌清茗 2020-12-23 10:39

For Android, people recommend using dp (density independent pixels) measurements for UI elements, and there are conventions that exist such as using 48dp for a

8条回答
  •  别那么骄傲
    2020-12-23 11:29

    Why not use points, it is a consistent size across devices. And is relative to the screen size. Most are not familiar with it since it comes from traditional publishing.

提交回复
热议问题