【发布时间】:2014-07-05 09:55:19
【问题描述】:
我刚刚使用http://ngmodules.org/modules/angularjs-media 在我的网站(angular/node/express)上嵌入了一个 Flash 游戏,如下所示:
<div class="container hero-unit">
<flash width="400" height="300" src="files/avoider.swf"></flash>
</div>
问题是,我有一个导航栏,我想将它包含在与ng-include 相同的部分中,如下所示:
<div ng-include="'partials/navbar'"></div>
<div class="container hero-unit">
<flash width="400" height="300" src="files/avoider.swf"></flash>
</div>
然而,当我这样做时,不是图形在 Flash 游戏中正常移动,而是图像有一个不断重复的尾巴。意思是,当图像移动时——图像的副本被留在最后一个位置——所以它看起来像一条很长的尾巴。我知道 ng-include 导致了这个问题,但我不知道为什么......任何帮助将不胜感激 - 谢谢。
更新
tail只出现在chrome中,在firefox中正常工作。
【问题讨论】:
标签: javascript node.js angularjs flash express