css3 - canvas在IOS8中不兼容。画不出来。
伊谢尔伦
伊谢尔伦 2017-04-17 11:59:49
0
2
825
var canvas=document.getElementById('myCanvas');
var ctx=canvas.getContext('2d');
ctx.fillStyle='#FF0000';
ctx.fillRect(0,0,80,100);

上面是我在w3c上面拷贝的,在ios8.1.2版本的苹果6上面,cavas画不出内容,求解决办法。

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(2)
左手右手慢动作

I haven’t tested it yet, so just give me some suggestions. Apple phones should support it. I don’t know whether you open it on WeChat or use a browser Yes, if you are on WeChat, you can test it in the browser (Safari) first.
Add a judgment for testing

if (canvas == null) {  
         //测试 
   } 

Reference standards

迷茫

https://developer.apple.com/s...

No one uses IOS8 anymore. Don't waste your energy.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template