web - 资源不会显示在网络监视器(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>
解决方案
推荐阅读
- python - 使用图像作为参数从 c# 调用 python 脚本
- bash - 需要提取所需的输出
- python - 打开现有工作簿的问题
- swift - NEVPNManager - 如何快速跟踪 VPN 的数据使用情况
- flutter - 单击时在 FlatButton 周围绘制边框
- wpf - 在 WPF 中覆盖或添加一些样式属性
- android - android中的SQL数据库中没有列
- javascript - 如何从前端使用 php/asp.net 等服务器端脚本访问浏览器 localStorage?
- python - 在同一索引的嵌套列表中查找最小的数字
- python-3.x - 为什么没有出现 flash 消息