首页 > 解决方案 > 资源不会显示在网络监视器(firefox)中

问题描述

因此,在 html 中,我指定了图像的路径(例如:

<img src="img_galaxy.jpg">

与 chrome 不同,当我检查元素时,我看不到此图像,也看不到网络监视器部分中显示的其他资源。

我有一个小 GIF 来展示我的意思。对不起质量损失,我不得不优化。

[左:火狐| 右:铬]

在此处输入图像描述

示例代码:

<!doctype html>
<html lang="en">
    <head>
        <meta charset="UTF-8"/>
        <title>Document</title>
        <link rel="stylesheet" href="css/normalize.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
    </head>
    <body>
        <img
            sizes="(max-width: 1400px) 100vw, 1400px"
            srcset="
                   img/jeremy-thomas-E0AHdsENmDg-unsplash_bbrljk/jeremy-thomas-E0AHdsENmDg-unsplash_bbrljk_c_scale,w_320.jpg 320w,
                   img/jeremy-thomas-E0AHdsENmDg-unsplash_bbrljk/jeremy-thomas-E0AHdsENmDg-unsplash_bbrljk_c_scale,w_914.jpg 914w,
                   img/jeremy-thomas-E0AHdsENmDg-unsplash_bbrljk/jeremy-thomas-E0AHdsENmDg-unsplash_bbrljk_c_scale,w_1321.jpg 1321w,
                   img/jeremy-thomas-E0AHdsENmDg-unsplash_bbrljk/jeremy-thomas-E0AHdsENmDg-unsplash_bbrljk_c_scale,w_1400.jpg 1400w"
            src="img/jeremy-thomas-E0AHdsENmDg-unsplash_bbrljk/jeremy-thomas-E0AHdsENmDg-unsplash_bbrljk_c_scale,w_1400.jpg"
            alt="">
    </body>
</html>

标签: webfirefoxbrowser

解决方案


推荐阅读