iframe src屏幕上的显示消息为空

时间:2020-05-28 16:23:02

标签: html jquery css django ajax

当没有单击任何匹配链接时,我想显示一条消息“请单击匹配项以开始”。即iframe没有src。我在后端使用django。这是我的html:

  </form><br>
      {% for match in all_matches %}
      <li style="list-style:none; text-align: center"><a style="padding: 6px 8px 6px 16px;text-decoration: none;font-size: 18px;color: #ffffff;display: block;" href="{{match.url}}" target="iframe1">{{match.name}}</a></li>
      <hr class="new1">
      {% endfor %}
    </div>

  <div class="col-sm-9 col-xs-9 col-md-9 col-lg-9" id="frameContainer">

  <iframe name="iframe1" id="fr" style="display: block;" width=100% height=100% frameborder="0" allowFullScreen="true"></iframe>
  </div>

1 个答案:

答案 0 :(得分:0)

可能最简单的方法是将静态HTML文件作为包含消息的初始iframe源。