gpt4 book ai didi

html - Firefox 中不显示背景图像

转载 作者:可可西里 更新时间:2023-11-01 14:58:29 26 4
gpt4 key购买 nike

奇怪的事情发生了。 Background-image 在某些版本的WindowsXP 和Windows Vista 下的Firefox 中不显示,但在Mac OSX 下的Firefox 中显示。它也显示在 IE 中。这是 CSS:

.cherry_banner {
background: url("library/media/images/cherry_banner_top.png") no-repeat;
width: 276px;
display:block;
min-height:100px;
padding-top: 13px;
color: #fdfdfd;
margin-bottom:20px;
}

.cherry_banner a {
color: #fdfdfd;
}

.cherry_banner a:hover {
text-decoration:underline;
}

.cherry_banner li {
list-style-type:none;
}

.cherry_banner h2 {
font-size: 18px;
margin-bottom: 10px;
}

.chb_text1 {
background: url("library/media/images/cherry_banner_pixel.png") repeat-y;
}

.chb_text2 {
background: url("library/media/images/cherry_banner_bottom.gif") bottom no-repeat;
padding: 4px 14px 24px 25px;
}

这是 html:

<div id="linkcat-8" class="cherry_banner tpt"><div class="chb_text1"><div class="chb_text2">
<h2>Для москвичей</h2>
<ul class='xoxo blogroll'>
<li><a href="http://inveda.ru/jyotish/naksatra-calendar/">Закажите бесплатный индивидуальный календарь благоприятных дат на 2010г.</a></li>
</ul>
</div></div></div>

你可以在http://www.inveda.ru上看到- 右栏 - 红色横幅。

最佳答案

您的代码是有效的,是的,我可以正确地看到背景。 (FF, IE6-9, Safari, Opera, Chrome)

我认为这是一个浏览器缓存问题(旧的 CSS 保留在您的 XP 机器上)。当您想在不同的浏览器/PC 上预览您的页面时,请确保您按下了 Ctrl+F5。

关于html - Firefox 中不显示背景图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3061909/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com