-webkit-min-device-pixel-ratio为1.0 所有非Retina的Mac 所有非Retina的iOS设备 Acer Iconia A500 Samsung Galaxy Tab 10.1 Samsung Galaxy S -webkit-min-device-pixel-ratio为1.3 Google Nexus 7 -webkit-min-device-pixel-ratio为1.5 Google Nexus S Samsung Galaxy S II HTC Des…
Canvas is great for high performance graphics rendering but by default the results look blocky on phones tablets and laptops with high pixel density or Retina displays. By using canvas width and height attributes and style props we can use window.dev…
常见的动作常量: public static final int ACTION_DOWN = 0;单点触摸动作 public static final int ACTION_UP = 1;单点触摸离开动作 public static final int ACTION_MOVE = 2;触摸点移动动作 public static final int ACTION_CANCEL = 3;触摸动作取消 pu…
PHP_OS是PHP中的一个预定义常量,表示当前操作系统.那么PHP_OS有哪些值可用呢??PHP_OS的值一般可以为:CYGWIN_NT-5.1,Darwin,FreeBSD,HP-UX,IRIX64,Linux,NetBSD,OpenBSD,SunOS,Unix,WIN32,WINNT,Windows.知道了这个,就可以分别对不同的操作系统执行不同的代码了.<?phpswitch(PHP_OS) { case 'Unix': break; case 'FreeBSD': break; …
inert into users value(3,5) db.users.insert({a:3,b:5}) select a,b from users db.users.find({}, {a:1,b:1}) select * from users db.users.find() select * from users where age=33 db.users.find({age:33}) select a,b from users where age=33 db.users.fin…
场景: 人物:前端实习生「阿树」与 切图工程师「玉凤」事件:设计师出设计稿,前端实现页面 玉凤:树,设计稿发给你啦,差那么点像素,就叼死你┏(  ̄へ ̄)=☞阿树:~(>_<)~毛问题噶啦~阿树:哇靠,为啥你给的设计稿是640px宽 ,iPhone 5不是320px宽吗???玉凤:A pixel is not a pixel is not a pixel, you know ?阿树:(#‵′),I know Google... 为什么会出现以上的情况,难道他们当中一位出错了,摆了这样的乌龙?事实…