Closed hitsubunnu closed 12 years ago
sorry i am not good at english. KineticJS is an HTML5 Canvas JavaScript library。I want to use it with html5shiv, but it donot work. Maybe Kinecticjs have a problem.
Kinecticjs: http://www.kineticjs.com/
code:
<!DOCTYPE HTML>
<html>
<head>
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
<style>
body {
margin: 0px;
padding: 0px;
}
canvas {
border: 1px solid #9C9898;
}
</style>
<script src="http://www.html5canvastutorials.com/libraries/kinetic-v3.10.4.js"></script>
<script>
window.onload = function() {
var stage = new Kinetic.Stage({
container: "container",
width: 578,
height: 200
});
var layer = new Kinetic.Layer();
var rect = new Kinetic.Rect({
x: 239,
y: 75,
width: 100,
height: 50,
fill: "#00D2FF",
stroke: "black",
strokeWidth: 4
});
// add the shape to the layer
layer.add(rect);
// add the layer to the stage
stage.add(layer);
};
</script>
</head>
<body>
<div id="container"></div>
</body>
</html>
Ok, I do not see any error with html5shiv in use. Actually Kinecticjs does not support IE8- and I'm pretty sure, they do not want to support those browsers (even if flashcanvas, es5-shim ... are used).
Can you please be more specific?