CSS Media Queries#element { background-image: url('hires.png'); }@media only screen and (min-device-pixel-ratio: 2) { #element { background-image: url ...
分类:
移动开发 时间:
2017-12-26 16:07:12
阅读次数:
228
一、为什么会有一像素问题 弄明白这个问题,首先要知道DPR了。 DPR(device pixel ratio)pixel等于picture element。设备像素比,是默认缩放100%的情况下,即DPR=设备像素个数/理想视口像素个数(device-width)。 1.设备像素:设备的物理像素,任 ...
分类:
移动开发 时间:
2017-12-24 20:10:50
阅读次数:
165
以下是几个主要浏览器的css hack汇总: 现有css样式为: 注意,\8\0的写法是错误的,不能试图这样hack IE8。上述代码没有对IE10和IE11分别hack(好像没有对这两个浏览器单独hack的写法),那么IE10和IE11使用的就是IE8+那个样式。 另外,还可以这样hack其他浏览 ...
分类:
Web程序 时间:
2017-12-18 19:13:31
阅读次数:
286
图片颜色的类型 1 (1 bit pixels, black and white, stored with one pixel per byte) L (8 bit pixels, black and white) P (8 bit pixels, mapped to any other mode ...
分类:
其他好文 时间:
2017-12-17 11:12:25
阅读次数:
217
ScrollViewer自定义样式 ScrollViewer在各种列表、集合控件中广泛使用的基础组建,先看看效果图: 如上图,ScrollViewer简单来说分两部分,一个横向的滚动条,一个垂直滚动条,两个样式、模板、功能都基本一样,他们都是ScrollBar。以垂直滚动条为例,分解一下,分解图: ...
图像边缘信息主要集中在高频段,通常说图像锐化或检测边缘,实质就是高频滤波。我们知道微分运算是求信号的变化率,具有加强高频分量的作用。在空域运算中来说,对图像的锐化就是计算微分。由于数字图像的离散信号,微分运算就变成计算差分或梯度。图像处理中有多种边缘检测(梯度)算子,常用的包括普通一阶差分,Robe ...
分类:
编程语言 时间:
2017-12-10 21:36:30
阅读次数:
336
参照整理自:https://github.com/jawil/blog/issues/21 http://www.jianshu.com/p/af6dad66e49a px:px是一个相对单位,相对的是设备像素(device pixel) margin:2px,这里的px是逻辑像素。 ppi:每英寸 ...
分类:
Web程序 时间:
2017-12-07 21:54:16
阅读次数:
280
Canvas Scaler 画布缩放器 The Canvas Scaler component is used for controlling the overall scale and pixel density of UI elements in the Canvas. This scaling ...
分类:
编程语言 时间:
2017-12-06 13:06:48
阅读次数:
404
An image is represented by a 2-D array of integers, each integer representing the pixel value of the image (from 0 to 65535). Given a coordinate (sr, ...
分类:
其他好文 时间:
2017-12-05 23:55:46
阅读次数:
336
An image is represented by a 2-D array of integers, each integer representing the pixel value of the image (from 0 to 65535). Given a coordinate (sr, ...
分类:
其他好文 时间:
2017-12-01 11:34:10
阅读次数:
104