说明:不是fullScreen, 而是在浏览器中100%宽度100%高度
终极解决办法
修改发布后的html页面:
修改js
var config = { width:960, height:600,
修改成:
var config = { width:window.innerWidth, height:window.innerHeight
修改css
在body块内添加:margin:0px; padding:0px; width:100%; height:100%
找到div.content块,改为:
div.content{ margin:auto; width:100%; height:100%; }
找到div#unityPlayer块,改为:
div#unityPlayer{ cursor:default; height:100%; width:100%; }
加入以下样式:
embed{ width:100% !important; }
最后删掉顶部和底部的多余两行文字的相关html即可
经验证,这个方法在ie下可用