问题描述
嘿所有,
我有一个相当奇怪的问题..我声明的图片标签
我的xhtml没有显示浏览器/ konqueror但显示得很好
Firefox,IE,Opera ......这是一个完全的谜,我一直在扫描我能找到的每本书/资源但是b $ b没有想出一个
的答案。有人有主意吗?网站上显示的所有其他图片都很好 -
但它们在css中被声明为背景图片。
该网站是:
img tag:
< a href =" /">< img alt =" timer image" SRC ="图像/ bigtimer2.jpg" />< / a>
css声明:
a img,img {
border:0;
}
这些是另一个标签声明,它不应该影响
图像,但可能与它有关我想 -
a:链接{
颜色:#000;
text-decoration:none;
}
a:访问{
颜色:#333;
border-bottom:1px点缀#ccc;
}
a:悬停{
颜色:#c33;
text-decoration:none;
}
a:有效{
颜色:#000;
border-bottom:1px点缀#ccc;
}
感谢您的帮助!
-bessington
hey all,
i''m having a rather bizarre problem.. the image tag i have declared in
my xhtml is not showing in safari / konqueror but showing just fine in
Firefox, IE, Opera... this is a complete mystery and I have been
scouring every book / resource I can find but haven''t come up with an
answer. any one have any ideas? all other images in site showing fine -
but they are declared as background images in the css.
the site is: http://www.15minutesofwhat.com
img tag:
<a href="/"><img alt="timer image" src="images/bigtimer2.jpg" /></a>
css declaration:
a img, img {
border:0;
}
and these are the other a tag declarations which shouldn''t affect the
image but may have something to do with it I figure -
a:link{
color: #000;
text-decoration: none;
}
a:visited{
color: #333;
border-bottom:1px dotted #ccc;
}
a:hover{
color: #c33;
text-decoration: none;
}
a:active{
color: #000;
border-bottom:1px dotted #ccc;
}
thanks for the help!
-bessington
推荐答案
我刚刚找到了消除部分CSS直到找到问题,并且发现了
问题。在#header上使用-9999px的文本缩进。如果你按照规则取出
,Konqueror会显示图像。 (没有Safari可以用
测试)
显然,这会让其他浏览器做你不想要的事情(我看到
发生在FF中的导航栏中的东西),但我没有时间来讨论为什么你首先需要文本缩进,而我
也不知道有什么可以同时隐藏Konqueror和
Safari的规则。
-
Els
Sonhos vem。 Sonhos v?£。 O resto ?? crisfeito。
- Renato Russo -
I just did a "eliminate parts of CSS till finding the problem", and
found the problem. You use a text-indent of -9999px on #header. If you
take out that rule, Konqueror shows the image. (don''t have Safari to
test with)
Obviously, this makes other browsers do what you don''t want (I see
stuff happening to the navbar in FF), but I don''t have the time to
figure out why you needed that text-indent in the first place, and I
also don''t know of a hack to hide the rule from both Konqueror and
Safari at the same time.
--
Els http://locusmeus.com/
Sonhos vem. Sonhos v?£o. O resto ?? imperfeito.
- Renato Russo -
您没有从服务器正确提供XHTML。
jasen @clunker:
you are not serving XHTML correctly from your server.
jasen@clunker:
这篇关于在xhtml代码中声明的图像未显示在safari / konqueror中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!