Image HTML<;图片>;元素不';我不能在铬42中工作
这是我在第页的Image HTML<;图片>;元素不';我不能在铬42中工作,image,google-chrome,responsive-design,Image,Google Chrome,Responsive Design,这是我在第页的元素: <picture> <source media="(max-width: 6400px)" srcset="./images/large.jpg 1024w" sizes="100vw" /> </picture> 但当我在Chrome浏览器中打开页面时,我看不到任何图片。在devtools网络面板中甚至不请求任何映像 我检查了Chrome 42是否支持元素 那么为什么不起作用呢?根据,支持的条件是在chrome://f
元素:
<picture>
<source media="(max-width: 6400px)" srcset="./images/large.jpg 1024w" sizes="100vw" />
</picture>
但当我在Chrome浏览器中打开页面时,我看不到任何图片。在devtools网络面板中甚至不请求任何映像
我检查了Chrome 42是否支持
元素
那么为什么
不起作用呢?根据,
支持的条件是在chrome://flags您缺少
如果我的解释正确,您仍然需要
中的
。
元素只允许它从图像URL列表中进行选择,而不是仅从单个URL中进行选择。
<picture>
<source media="(max-width: 6400px)"
srcset="./images/large.jpg 1024w" sizes="100vw" />
<img src="default.jpg" alt="my images" />
</picture>