我试着测试画布标签,我从下面的代码开始:
<html>
<canvas id="example" width="200" height="200">
This text is displayed if your browser does not support HTML5 Canvas.
</canvas>
</html>
在IE8中我得到了这样的信息:
This text is displayed if your browser does not support HTML5 Canv
我在createRadialGradient()画布上玩HTML5。它的作用就像一种魅力,除非我试图实现(半)透明。
我制作这个jsFiddle是为了让事情更清晰:。
function circle(x, y, r, c) {
ctx.beginPath();
var rad = ctx.createRadialGradient(x, y, 1, x, y, r);
rad.addColorStop(0, c);
rad.addColorStop(1, 'transparent');
ctx.fillStyle = rad;
ct
嗨,Html5开发人员和HTML4开发人员也.
我想知道是否有任何方法在window.fileReader和更高版本中支持html5的IE8 API。
守则如下:
if(window.fileReader){
alert("supported"); // in html5 works and fires alert but not in IE8
}
实际上,我想在提交.之前阅读文件的内容。
如果支持window.fileReader,我可以使用某些条件吗?
使用HTML5遵循'A‘行代码,否则如果不支持window.fileReader
使用其他一些thing