根据amp-video-iframe文档,该poster属性是必需的:https :
//amp.dev/documentation/components/amp-video-iframe/?format=websites
但在官方示例页面:https :
//github.com/ampproject/amphtml/blob/master/examples/amp-video-iframe.html
Google 开发人员使用 aplaceholder代替。检查标签验证源代码,似乎两个用例都是有效的:https :
//github.com/ampproject/amphtml/blob/master/extensions/amp-video-iframe/validator-amp-video-iframe.protoascii# L92
有谁知道占位符用例是允许的还是应该避免的?我找不到有关文档的其他信息