摘要:
问题的产生其实适合分辨率有关系。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 阅读全文
摘要:
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 ... 阅读全文