amp-list 回退仅在页面调整大小时加载

问题描述 投票:0回答:0

我正在处理的 AMP 邮件中有以下放大器列表。 我将 amp-list src 设置为一个不存在的端点,以便查看回退。 问题是请求失败后没有呈现回退,但如果我出于某种原因调整浏览器大小,它会显示。

这是AMP邮件-

<amp-list
  id="outterList"
  single-item items="." 
  src="https://b56124055d2a.ngrok.app/notfound"
>
  <div placeholder style="min-height:200px"></div> 
  <div fallback> 
    <div style="overflow: auto; display: block;">
      <div style="height:500px;background:blue">asdasd</div>
      <div style="height:500px;background:red">asdasd</div>
    </div>
  </div>
  <template type="amp-mustache">
    test
  </template>
</amp-list>

我怎样才能使回退内容正确呈现?

我尝试将 css 与 overflow: auto 一起使用;显示:块。

编辑:添加这个视频更好地说明问题

html amp-html amp-email
© www.soinside.com 2019 - 2024. All rights reserved.