Web developers need CSS pixels, that is, the pixels that are used in CSS declarations such as "  font-size:14px; ".

These pixels have nothing to do with the actual pixel density of the device. They are  essentially an abstract construct created specifically for us web developers.

It's easiest to explain when we consider zooming. If the user zooms in, an element with " width:300px; " takes up more and more of the screen, and thus use more and mroe device pixels(physical). In CSS pixels, however, the width remains 300px.

In  <meta name="viewport" width="device-width"> , width querys the total width of the page in CSS pixels, the device-width querys the width of the device in device pixels.

最新文章

  1. Windows安装和使用zookeeper
  2. mac下svn问题——“.a”(静态库)文件无法上传解决
  3. 附12 grafana配置文件
  4. Android开发代码规范(转)
  5. [linux basic 基础]----同步互斥量
  6. springmvc(3)--数据类型转换
  7. maxlength属性在textarea里奇怪的表现
  8. data guard折腾记一
  9. 使用urllib进行网页爬取
  10. Junit4拓展工具JCategory与Testng的Group功能比较
  11. 数据存储简单了解(NSUserDefaults)
  12. C#编程总结
  13. CSS中position属性( absolute | relative | static | fixed )详解
  14. Android音频焦点详解(上)
  15. 在CENTOS上源码搭建LNMP环境
  16. postgresql 最大连接数相关
  17. Go 字符串连接+=与strings.Join性能对比
  18. HBase——HMaster启动之一(HMaster的构建)
  19. tcp关闭状态详解
  20. CodeForces 433C Ryouko&#39;s Memory Note (中位数定理)

热门文章

  1. 使用docker安装gitlab
  2. java 里执行javascript代码
  3. for循环的耗时问题
  4. 【DRF框架】路由组件
  5. 【pytorch报错解决】expected input to have 3 channels, but got 1 channels instead
  6. Codeforces Round #519 D - Mysterious Crime
  7. Codeforces Round #609 (Div. 2) D. Domino for Young
  8. 织梦阿里云OSS解决方案
  9. ARRAY_MAP函数用法
  10. Java中static用来计数