我的 css 中的背景图片没有被替换
Background image is not replacing in my css
当前背景图片是
background: url("../img/hero-bg.jpg") top center;
我想替换它,所以我尝试了这个:
background: url("../img/bg.jpg") top center;
图像:bg.jpg 与 hero-bg.jpg 所在的文件夹相同。
图像不会被替换,因此 hero-bg.jpg 仍然可见。
如果我检查该元素,它会向我显示此样式表:
background: url("../img/hero-bg.jpg") top center;
知道为什么吗?
打开开发工具 -> 网络选项卡 -> 禁用缓存 -> 重新加载网页
当前背景图片是
background: url("../img/hero-bg.jpg") top center;
我想替换它,所以我尝试了这个:
background: url("../img/bg.jpg") top center;
图像:bg.jpg 与 hero-bg.jpg 所在的文件夹相同。
图像不会被替换,因此 hero-bg.jpg 仍然可见。 如果我检查该元素,它会向我显示此样式表:
background: url("../img/hero-bg.jpg") top center;
知道为什么吗?
打开开发工具 -> 网络选项卡 -> 禁用缓存 -> 重新加载网页