/* iphone4 */ @media screen and (device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 2){ } /* iphone5 */ @media screen an ...
分类:
移动开发 时间:
2017-09-30 13:25:55
阅读次数:
165
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; using System... ...
分类:
其他好文 时间:
2017-09-27 13:29:37
阅读次数:
239
>>> from tkinter import *>>> root=Tk()>>> text=Text(root,width=40,height=10) #创建一个text 文本框。长度是40 pixel 高度是10pixel>>> text.pack() #排版>>> text.config(wr ...
分类:
其他好文 时间:
2017-09-27 10:22:20
阅读次数:
168
qrcode.js 1 /*from tccdn minify at 2014-6-4 14:59:43,file:/cn/c/c/qrcode.js*/ 2 /** 3 * @fileoverview 4 * - Using the 'QRCode for Javascript library' ...
分类:
其他好文 时间:
2017-09-26 21:15:36
阅读次数:
268
Given a picture consisting of black and white pixels, find the number of black lonely pixels. The picture is represented by a 2D char array consisting ...
分类:
其他好文 时间:
2017-09-25 13:12:22
阅读次数:
145
随着高端手机(Andriod,Iphone,Ipod,WinPhone等)的盛行,移动互联应用开发也越来越受到人们的重视,用html5开发移动应用是最好的选择。然而,每一款手机有不同的分辨率,不同屏幕大小,如何使我们开发出来的应用或页面大小能适合各种高端手机使用呢?学习html5 viewport的 ...
分类:
Web程序 时间:
2017-09-23 20:20:27
阅读次数:
269
在实际工作中,WPF提供的控件并不能完全满足不同的设计需求。这时,需要我们设计自定义控件。 这里LZ总结一些自己的思路,特性如下: Coupling UITemplate Behaviour Function Package 下面举例说说在项目中我们经常用到调音台音量条,写一个自定义控件模拟调音台音 ...
/// 使用方法:本方法由于内部统一设置dHeight,dWidth和原图片的长宽一致,所以图片的大小一样。 /// flag:压缩率,这里仅仅压缩像素,不改变图片的外观大小(既长宽) /// 无损压缩图片 /// <param name="sFile">原图片</param> /// <param ...
webapp开发初期,会碰到在pc端开发好的页面在移动端显示过大的问题,这里需要在html head中加入meta标签来控制缩放 下面是对于这个标签的具体说明: viewport 语法介绍: <meta name="viewport" content包含有以下几个属性:height = [pixel ...
分类:
移动开发 时间:
2017-09-15 20:22:03
阅读次数:
231
@media (device-height:480px) and (-webkit-min-device-pixel-ratio:2){/* 兼容iphone4/4s */ .class{} } @media (device-height:568px) and (-webkit-min-device... ...
分类:
Web程序 时间:
2017-09-14 16:50:35
阅读次数:
241