This is very interesting to me... This image displays perfectly well in Safari, but not at all in Firefox! Here's the relevant code:
这对我来说非常有趣......这张图片在Safari中表现得非常好,但在Firefox中根本没有!这是相关的代码:
<div id="ad">
<p>Advertisment</p>
<img src="/ADS/fakead1.gif" />
</div>
With CSS:
#ad{color: #666;}
#ad p{
font-size: .5em;
text-align: center;
padding: 0;
margin: 0;
}
#ad img{
width: 9em;
padding: .5em;
margin: 0;
}
Why would this code cause Firefox to simply ignore the image? (Again, it works perfectly fine with Safari.)
为什么这段代码会导致Firefox简单地忽略图像? (同样,它与Safari完美搭配。)
2 个解决方案
#1
9
Wow, I'm not so smart...
哇,我不是那么聪明......
AdBlock Plus is smarter that I would have thought! I'll need to change the div name to something less obvious than "ad" (!)
AdBlock Plus比我想象的更聪明!我需要将div名称改为比“ad”(!)更不明显的名称
I should have known.
我早该知道。
A word to the wise: if you want your ad to get through, name the div in klingon.
明智的一句话:如果你想要你的广告通过,请在克林贡命名div。
#2
2
it works for me here. its just your adblock i would say
它对我有用。它只是你的adblock我会说
#1
9
Wow, I'm not so smart...
哇,我不是那么聪明......
AdBlock Plus is smarter that I would have thought! I'll need to change the div name to something less obvious than "ad" (!)
AdBlock Plus比我想象的更聪明!我需要将div名称改为比“ad”(!)更不明显的名称
I should have known.
我早该知道。
A word to the wise: if you want your ad to get through, name the div in klingon.
明智的一句话:如果你想要你的广告通过,请在克林贡命名div。
#2
2
it works for me here. its just your adblock i would say
它对我有用。它只是你的adblock我会说