![Real-Time 3D Graphics with WebGL 2](https://wfqqreader-1252317822.image.myqcloud.com/cover/219/36699219/b_36699219.jpg)
上QQ阅读APP看书,第一时间看更新
Understanding Canvas Attributes
There are three attributes in our previous example:
- id: This is the canvas identifier in the DOM.
- width and height: These two attributes determine the size of our canvas element. When these two attributes are missing, Firefox, Chrome, and WebKit will default to using 300px by 150px.