/* 兼容问题*/@media screen and (device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 2){ .dialog-agreement-con{ height: 4...
分类:
移动开发 时间:
2016-01-06 10:19:58
阅读次数:
352
Anti-aliasingproblemwithrender_scanlines_compound_layered>However,Ihavenocluewhatthischangemeans.Ireadabout>premultipliedpixelformatshereandthere,butneverreally>understoodwhattheyare.SearchinGooglefor"premultipliedalpha.Useit,loveit,passiton":-)Int..
分类:
其他好文 时间:
2016-01-03 00:52:22
阅读次数:
172
目录(?)[+]1.iPhone尺寸规格设备iPhone宽Width高Height对角线Diagonal逻辑分辨率(point)Scale Factor设备分辨率(pixel)PPI3GS2.4 inches (62.1 mm)4.5 inches (115.5 mm)3.5-inch320x480...
分类:
其他好文 时间:
2015-12-30 23:56:16
阅读次数:
288
An image is represented by a binary matrix with 0 as a white pixel and 1 as a black pixel. The black pixels are connected, i.e., there is only one bla...
分类:
其他好文 时间:
2015-12-29 08:45:18
阅读次数:
133
原理:找一幅画,每隔5 pixel取一个点的RGB,在CSS中用box-shadow描绘出这个点 Python from PIL import Image if __name__ == '__main__': with open('C:\\css.txt', 'w') as f: im = Imag...
分类:
Web程序 时间:
2015-12-24 00:16:41
阅读次数:
285
首先,px、em、rem都是相对单位;px(pixel像素)是相对于显示器屏幕分辨率的,IE无法调整那些使用px作为单位的字体大小;em是相对于当前对象内文本字体的尺寸,如当前对行内文本的字体尺寸未被人为设置,则相对于浏览器的默认字体尺寸。(引自CSS2.0手册),不过需要注意的是em单位会继承父级...
分类:
Web程序 时间:
2015-12-23 12:55:04
阅读次数:
197
一、Point Vs PixeliOS中当我们使用Quartz,UIKit,CoreAnimation等框架时,所有的坐标系统采用Point来衡量。系统在实际渲染到设置时会帮助我们处理Point到Pixel的转换。这样做的好处隔离变化,即我们在布局的事后不需要关注当前设备是否为Retina,直接按照...
分类:
移动开发 时间:
2015-12-23 00:32:17
阅读次数:
258
一.PXpx像素(Pixel)。相对长度单位。像素px是相对于显示器屏幕分辨率而言的.这个单位应该不用多说,大家用得最多。在Web页面初期制作中,我们都是使用px来设置我们的文本,因为他比较稳定和精确。但是这种方法存在一个问题,当用户在浏览器中浏览我们制作的Web页面时,他改变了浏览器的字体大小,这...
分类:
其他好文 时间:
2015-12-22 14:36:50
阅读次数:
288
序言长度单位可以总体的分为绝对长度单位和相对长度单位。CSS中最为大家熟知的无疑是px和em,但与此同时还存在pt, rem, vw, vh等其他计量单位,使用好它们可以大大增长我们的开发效率。本篇文章试图整理在前端开发中用到的CSS单位和其应用场景。px——像素px是pixel缩写,是基于像素的单...
分类:
Web程序 时间:
2015-12-22 10:26:43
阅读次数:
165
1.iPhone尺寸规格设备iPhone宽Width高Height对角线Diagonal逻辑分辨率(point)Scale Factor设备分辨率(pixel)PPI3GS2.4 inches (62.1 mm)4.5 inches (115.5 mm)3.5-inch320x480@1x320x4...
分类:
其他好文 时间:
2015-12-21 15:59:18
阅读次数:
186