Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Image HTML<;图片>;元素不';我不能在铬42中工作_Image_Google Chrome_Responsive Design - Fatal编程技术网

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>