There was an error while loading. Please reload this page.
1 parent 9b4dfd7 commit bb89663Copy full SHA for bb89663
README.md
@@ -1672,11 +1672,11 @@ socket.addEventListener('message', function(event) {
1672
1673
```html
1674
<div>Rectangle with Style</div>
1675
-<canvas id="rect">This browser does not support Canvas!</canvas>
+<canvas id="rectangle" width="300" height="200" style="border: 1px solid #999;"></canvas>
1676
1677
<script type="text/javascript">
1678
// Rectange with style
1679
- var canvas = document.getElementById("rect");
+ var canvas = document.getElementById("rectangle");
1680
var context = canvas.getContext("2d");
1681
context.fillStyle = "#FF0000";
1682
context.fillRect(0, 0, 300, 200);
0 commit comments