在xhtml代码中声明的图像未显示在safari / konqueror中 [英] image declared in xhtml code not showing in safari / konqueror

查看:60
本文介绍了在xhtml代码中声明的图像未显示在safari / konqueror中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有,


我有一个相当奇怪的问题..我声明的图片标签

我的xhtml没有显示浏览器/ konqueror但显示得很好

Firefox,IE,Opera ......这是一个完全的谜,我一直在扫描我能找到的每本书/资源但是b $ b没有想出一个

的答案。有人有主意吗?网站上显示的所有其他图片都很好 -

但它们在css中被声明为背景图片。


该网站是: http://www.15minutesofwhat.com


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

推荐答案

bessington写道:
bessington wrote:
嘿所有,


你好

我有一个相当奇怪的问题..我已经在
我的xhtml中声明了我的图像标签没有在safari / konqueror中展示,但在Firefox,IE,Opera中显示得很好......这是一个完全的谜,我一直在搜索我能找到的每本书/资源但是没有拿出一个
答案。有人有主意吗?网站上显示的所有其他图片都很好 -
但它们在css中被声明为背景图片。

该网站是: http://www.15minutesofwhat.com

img标签:
< a href =" /"> ;< img alt =" timer image" SRC ="图像/ bigtimer2.jpg" />< / a>
hey all,
Hello
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直到找到问题,并且发现了

问题。在#header上使用-9999px的文本缩进。如果你按照规则取出
,Konqueror会显示图像。 (没有Safari可以用
测试)


显然,这会让其他浏览器做你不想要的事情(我看到

发生在FF中的导航栏中的东西),但我没有时间来讨论为什么你首先需要文本缩进,而我

也不知道有什么可以同时隐藏Konqueror和

Safari的规则。


-

Els http://locusmeus.com/

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 -


2005-12-17,bessington< be ********** *@gmail.com>写道:
On 2005-12-17, bessington <be***********@gmail.com> wrote:
嘿所有,

我有一个相当奇怪的问题..我声明的图像标签我的xhtml没有在safari中显示/ konqueror但在Firefox,IE,Opera中显示得很好......这是一个完全的谜,我一直在搜索我能找到的每本书/资源但是没有想出一个<回答。有人有主意吗?网站上显示的所有其他图片都很好 -
但它们在css中被声明为背景图片。

该网站是: http://www.15minutesofwhat.com




您没有从服务器正确提供XHTML。

jasen @clunker:



you are not serving XHTML correctly from your server.
jasen@clunker:


nc www.15minutesofwhat.com 80

GET / HTTP / 1.1

主持人: www.15minutesofwhat.com


HTTP / 1.1 200 OK

日期:2005年12月17日星期六格林威治标准时间20:09:29

服务器:Apache / 1.3.33(Unix)DAV / 1.0.3 mod_fastcgi / 2.4.2 mod_gzip / 1.3.26.1a

PHP / 4.3.10 mod_ssl / 2.8.22 OpenSSL / 0.9.7e

X-Powered-By:PHP / 4.3.10

转移编码:chunked

内容类型:text / html

c59

<!DOCTYPE ht ml PUBLIC" - // W3C // DTD XHTML 1.0 Transitional // EN"

" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >

< html xmlns =" http://www.w3.org/1999/xhtml" id =" sixapart-standard">

< head>


.....


你的服务器提供了错误的内容类型:...如果你想让你的XHTML以
作为XHTML工作,你必须先修复它。

你的XML标签在哪里...通过验证器运行该页面。

或许你应该使用HTML代替。

-


再见。

Jasen
nc www.15minutesofwhat.com 80
GET / HTTP/1.1
Host: www.15minutesofwhat.com

HTTP/1.1 200 OK
Date: Sat, 17 Dec 2005 20:09:29 GMT
Server: Apache/1.3.33 (Unix) DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a
PHP/4.3.10 mod_ssl/2.8.22 OpenSSL/0.9.7e
X-Powered-By: PHP/4.3.10
Transfer-Encoding: chunked
Content-Type: text/html

c59
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
<head>

.....

your server is giving the wrong Content-Type:... if you want your XHTML to
work as XHTML you must fix that first.
where is your XML tag ... run that page through a validator.
perhaps you should be using HTML instead.
--

Bye.
Jasen


这篇关于在xhtml代码中声明的图像未显示在safari / konqueror中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆