上QQ阅读APP看书,第一时间看更新
Defining a CSS Style
This is the piece of code that determines the canvas style:
<style type="text/css">
canvas {
border: 5px dotted blue;
}
</style>
This code is not fundamental to build a WebGL application. Given that the canvas element is initially empty, a blue-dotted border is a simple way to verify the location of the canvas.