
安装完该插件后,在你需要采用WebGL的页面增加一行<meta http-equiv=”X-UA-Compatible” content=”chrome=1″>代码即可,或者从服务器下发该页面是对HTTP头增加X-UA-Compatible: chrome=1的参数即可。
使用<code>Google Chrome Frame</code>还需要注意一下几点:
<code>Google Chrome Frame</code>不支持直接从本地<code>local file</code>方式打开页面,必须把页面部署到<code>Web</code>服务器发布方式打开才能运行出效果
<a href="http://msdn.microsoft.com/en-us/library/ie/hh673529(v=vs.85).aspx">http://msdn.microsoft.com/en-us/library/ie/hh673529(v=vs.85).aspx</a>
Note The W3C specification defines a keyword value of preserve-3d for this property, which indicates that flattening is not performed. At this time, Internet Explorer 10 does not support the preserve-3d keyword. You can work around this by manually applying the parent element’s transform to each of the child elements in addition to the child element’s normal transform.
1、lineWidth不让设置,只支持1个像素的连线,只能用一个像素将就着,或者把线采用构建模型的重方式来替代
2、Stencil buffers还不支持,clearStencil之类的函数就不要考虑用了
3、TRIANGLE_FAN类型不支持,这个还好办,改用TRIANGLES替代顶多增加点顶点数据
4、不支持return语句,你妹的这个问题让我苦苦找了半天才发现,只能改变代码逻辑不用return的方式