我有一个透明背景的gif图像,如您在我的桌面上所见:
但是当我在html代码中使用它时,会变成白色背景。 我已经测试了背景css属性和stackoverflow以及Google主页其他站点中的答复。 这是我的代码:
<img src="/content/elecomp98/pahbad.gif" style="position: absolute;top: 50px;left: 0;width: 250px;">
<div style="width: 250px;height: 280px;background: url(/content/elecomp98/pahbad.gif);position: absolute;left: 0;top: 50px;background-size: cover;display: none;"></div>
答案 0 :(得分:2)
请注意,“ {Pahbad.gif
”与“ pahbad.gif
”不同。
图片网址区分大小写。
级联样式表(CSS)不区分大小写。但是,字体家族,图像的URL以及样式表中的其他直接引用可能是
。
我建议您链接错误的图片。