【问题标题】:Tail on flash game graphic when using ng-include, no tail on graphic without使用ng-include时Flash游戏图形上的尾巴,图形上没有尾巴
【发布时间】: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


    【解决方案1】:

    这行导致了问题:

    '<param name="wmode" value="transparent" />'
    

    它是在 angularjs-media 指令文件中创建 &lt;object&gt; 标记的 html - chrome 不喜欢它。它使 Flash 窗口透明。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-08-05
      • 1970-01-01
      • 2021-12-11
      • 2019-06-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多