Closed JunIce closed 6 years ago
@JunIce <mip-img>
是 <img>
的封装,原生标签支持什么他就支持什么。同时都已经使用了 <source>
为何还需要 <mip-img>
做 webp 识别呢?<mip-img>
应该是一个兜底的标签,比如,<picture>
里有 2 个 <source>
,都是 webp 图片,如果都加载失败最后才会加载 <mip-img>
(比如 <mip-img>
是 .png 的图片)。
代码片段
问题
picture 下的 img 标签验证不能通过, 采用官方标签 mip-img 不能识别webp格式图片