官术网_书友最值得收藏!

Minor tweaks to the head tag

Inside of our head tag, we will want to change title, and because we renamed canvas.css to webgl.css, we will need to point our link tag to the new stylesheet name. Here are the only two tags that must change at the beginning of the HTML:

<title>WebGL Shell</title>
<link href="webgl.css" rel="stylesheet" type="text/css">

Later in the HTML, we will remove the img tag where the src is set to "spaceship.png". It is not strictly necessary to do this. In the canvas version, we were using this tag to render an image to the canvas. In this WebGL version, we will load the image dynamically, so it is not necessary to keep it around, but if you forget to remove it, having it there will not harm the app in any way.

主站蜘蛛池模板: 政和县| 嘉禾县| 台州市| 拉萨市| 林口县| 名山县| 西充县| 丰原市| 淮安市| 云林县| 岫岩| 临高县| 渝北区| 新泰市| 逊克县| 平罗县| 怀集县| 积石山| 泸水县| 淮安市| 萨嘎县| 涟水县| 新竹市| 安龙县| 刚察县| 海宁市| 亚东县| 台南市| 通州市| 平果县| 贵南县| 娱乐| 宜州市| 南涧| 微山县| 广水市| 陵川县| 五原县| 林甸县| 蒙自县| 广河县|