Jinja Bootstrap模式没有显示超过swf文件

时间:2015-07-11 09:07:04

标签: twitter-bootstrap flash jinja2

每次我点击firefox上的模态时,它都显示在swf下。

我尝试按照建议here

放入参数
<button type="button" class="btn btn-default" data-toggle="modal" role="dialog" data-target="#save">
<span class="glyphicon glyphicon-flash"></span>
</button>
<row class="col-md-12">
        <div class="text-center embed-responsive embed-responsive-4by3 text-center " wmode="transparent" ><embed src="/static{{ game.game_swf }}" name="wmode" value="transparent" /></div>
</row>

<div class="modal fade" id="save" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
  <div class="modal-content">
   <div class="modal-header">
     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
     <h3 class="modal-title" id="myModalLabel">Archive List and Start New</h3>
    </div>

   <form role="form_list" class="form form-medium" action="." method="post">

    <div class="modal-body">
        <h4>Save list as: </h4>
    </div>

    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <a href="#">
          <button class="btn btn-success">Archive List</button></a>
    </div>
  </form>

  </div><!-- modal content -->
  </div><!-- modal-dialog -->
</div><!-- modal -->s

但由于某种原因,它仍然显示了模式上的SWF。

1 个答案:

答案 0 :(得分:0)

想出来

使用params将emebed更改为对象。

<object type="application/x-shockwave-flash" data="/static{{ game.game_swf }}">
 <param name="movie" value="/static{{ game.game_swf }}">
 <param name="wmode" value="transparent">
</object>