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

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.

主站蜘蛛池模板: 大埔县| 天镇县| 临邑县| 奇台县| 武清区| 恩平市| 南平市| 涿州市| 正蓝旗| 襄垣县| 兖州市| 曲沃县| 青河县| 新绛县| 双流县| 瑞安市| 车险| 金川县| 佳木斯市| 中宁县| 祥云县| 安新县| 寿光市| 高陵县| 黔东| 昌乐县| 南江县| 维西| 丹寨县| 涿鹿县| 宝丰县| 陇南市| 阿拉善右旗| 平远县| 邓州市| 昌图县| 九寨沟县| 永安市| 阳新县| 宜春市| 永康市|