边缘没有显示一些img src文件的div背景图像

时间:2016-05-20 18:43:29

标签: html5 css3

我有两个问题,Edge浏览器没有显示图像。

问题1:

<div class="profile-pic">
</div>

.profile-pic {
    background: url(../images/profile-bg.jpg) no-repeat;
}

图像在Edge&amp;铬。 但是,当我将图像网址更改为新图像时,让我们说,(.. / images / profile-bg1.jpg),Chrome会更新到新图像,但Edge不会显示任何内容。 Edge中的div是空白的(即使检查Edge中的代码显示新的URL。

我还尝试使用相同的文件名 profile-bg.jpg 替换另一个图像,但Edge仍然显示为空白。 Chrome工作正常。令人惊讶的是,Edge仅显示我使用的初始图像文件。

我尝试清除缓存和所有内容,但没有任何作用。

问题2:

<div class="profile">
    <img src="images/profile-bg1.jpg">
</div>

.profile {
    height: 100px;
    width: 100px;
}

.profile img {
    height: 100px;
    width: 100px;
    border-radius: 50%;
}

同样,Chrome会显示图片,而Edge则不会。

任何解决方案&gt;

感谢。

0 个答案:

没有答案
相关问题