解决视网膜屏上看网页图片模糊的问题?
2015-12-31 12:22
162 查看
使用 img-set:
background-image: img-set( url(a.png) 1x, url(a@2x.png) 2x );或 Media Query + background-size:
.sprite {
background-image: url(sprite.png);
background-size: 100px 200px;
}@media (min-resolution: 2dppx), (-webkit-min-device-pixel-ratio:2) {
.sprite {
background-image: url(sprite@2x.png);
}
}
相关文章推荐
- 任性走通在线教育之路——如鹏创业一年总结
- iOS UIWebView
- android gradle 多渠道打包分发
- 【虫师--系列】LR有的JMeter也有之三“集合点”
- leetcode刷题日记—— Linked List Cycle II
- Qwt中的鼠标操作之缩放、平移
- 任性走通在线教育之路——如鹏创业一年总结
- Daily Scrum- 12/31
- POJ1159,Palindrome
- 【虫师--系列】LR有的JMeter也有之二“检查点”
- 【虫师--系列】LR有的JMeter也有之一“参数化”
- 轻松学习之Linux教程六 正則表達式具体解释
- 【虫师--系列】使用JMeter创建数据库(Mysql)测试
- 【翻译自mos文章】跟踪UNIX系统调用的方法
- JS 立即执行的函数表达式(function)写法
- 21.Android之SQLite数据库学习
- 安卓 tar.bz2
- Description Resource Path Location Type AppliToolingPart cannot be resolved to a type AppliToolingPa
- 如何把github上项目import 到AS 中
- word2vec 中的数学原理具体解释(一)文件夹和前言