摘要:
问题的产生其实适合分辨率有关系。IPhone4s是retina屏幕,所以以下值应该是2var getDevicePixelRatio = function (){ return window.devicePixelRatio || 1;}如果是2,我们应当怎么做?比如有个canvasvar pixelTatio = getDevicePixelRatio(),width = 300,height =300;canvas.style.width = width + "px";canvas.style.height = height +"px";canvas 阅读全文
posted @ 2012-11-29 14:29
阿水哥
阅读(2315)
评论(0)
推荐(0)
摘要:
1 - (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 2 { 3 // First, ask the webview via JS if it supports the new orientation 4 NSString* jsCall = [NSString stringWithFormat: 5 @"(function(){ \ 6 ... 阅读全文
posted @ 2012-11-29 14:02
阿水哥
阅读(302)
评论(0)
推荐(0)
浙公网安备 33010602011771号