设备像素密度测试 (-webkit-min-device-pixel-ratio)
来源:互联网 发布:mindmap for mac 编辑:程序博客网 时间:2024/05/17 04:27
定义:
window.devicePixelRatio是设备上物理像素和设备独立像素(device-independent pixels (dips))的比例。
公式表示就是:window.devicePixelRatio = 物理像素 / dips
dip或dp,(device independent pixels,设备独立像素)与屏幕密度有关。dip可以用来辅助区分视网膜设备还是非视网膜设备。
非视网膜屏幕的iphone上,屏幕物理像素320像素,独立像素也是320像素,因此,window.devicePixelRatio等于1
-webkit-min-device-pixel-ratio有哪些值?
- 1.0
- 1.3
- 1.4
- 1.5
- 2.0
- 2.6
- 3.0
0 0
- 设备像素密度测试 (-webkit-min-device-pixel-ratio)
- 响应式布局—设备像素密度(-webkit-min-device-pixel-ratio)
- 介绍了各手机的像素密度_(-webkit-min-device-pixel-ratio)_响应式布局
- -webkit-min-device-pixel-ratio: 2是什么意思?
- -webkit-min-device-pixel-ratio的常见值对照
- 使用min-device-pixel-ratio媒体功能实现真正的1像素border
- 设备独立像素(density)与像素(pixel)
- 设备独立像素(density)与像素(pixel)
- CSS检测高像素密度屏幕设备
- IOS各类设备点(point)及像素(pixel)汇总
- Pixel Aspect Ratio from Wiki
- 不同安卓设备的像素密度数值
- 如果获取设备的的分辨率、屏幕尺寸、像素密度?
- 亚像素(Pixel)
- 次像素[sub-pixel]
- 像素化pixel shader
- 亚像素 Sub Pixel
- 2.1pixel像素基础
- java安全架构____数字证书结构和类别
- PAT A1102. Invert a Binary Tree
- 动态规划,dp
- Java多线程之并发协作生产者消费者设计模式
- python装饰器学习笔记
- 设备像素密度测试 (-webkit-min-device-pixel-ratio)
- How to get price from apple store or google store
- js 浏览器对象模型 (BOM)
- sql查询当天、本周、本月记录
- LeetCode
- HDU1256 画8
- UCOSII移植
- ~/.bash_profile
- Linux发送函数dev_queue_xmit分析