<picture>元素srcset顺序重要性
<picture> element srcset order importance
添加 <source>
元素的源代码顺序重要吗?我将添加多种文件格式并使用 type 属性来支持浏览器。因此,如果没有 media
标记来引导浏览器。它如何选择要使用的源标记?
Very much like it does when using the sizes algorithm, the browser goes over the list of sources and picks the first one that matches. A match can happen based on both media and type attributes.
Link 到我有时难以阅读并得到直接答案的规范:select-an-image-source
添加 <source>
元素的源代码顺序重要吗?我将添加多种文件格式并使用 type 属性来支持浏览器。因此,如果没有 media
标记来引导浏览器。它如何选择要使用的源标记?
Very much like it does when using the sizes algorithm, the browser goes over the list of sources and picks the first one that matches. A match can happen based on both media and type attributes.
Link 到我有时难以阅读并得到直接答案的规范:select-an-image-source