什么是 i-amp-sizer,为什么有些 amp-img 显示在这个 sizer 下方?

What is i-amp-sizer and why some amp-img's show below this sizer?

当我添加 amp-img 时,会出现类似 i-amp-sizer 的东西。我的问题是,我有一些图像想要进行 AMPed,其中一些图像与此 sizer 不匹配(图像恰好显示在 sizer 下方)。

任何想法可能是什么原因?我真的很想知道这个 amp-sizer 负责什么。

如本 documentation, any elements prefixed with i-amp- are considered to be internal to AMP and their use in user stylesheets is not allowed. They are shown here simply for informational purposes. You can check on this tutorial 所述。您可以在上面的文档中看到 CSS "display" 的值是 block 并且它的大小 id 基于父容器和纵横比 width:height.