2011-09-29 37 views
1

图像(logo.tiff)在CSS文件中定义并在索引文件中调用时不会显示。TIFF格式不适用于CSS

但是,当我以另一种格式(例如gif或jpeg)保存时,它工作得很好。这是否有一个原因或解决方法?

谢谢你们。

CSS文件:

.logo{ 
    float:left; 
    overflow:hidden; 
    text-indent:-9999px; 
    background:url(../images/logo.tiff) no-repeat; 
    width:218px; 
    height:103px; 
} 

index.html文件:

<h1 class="logo"><a href="#">Our Slogan Here</a></h1> 
+0

[http://stackoverflow.com/questions/2176991/支持显示所有网页浏览器中的图像](http://stackoverflow.com/questions/2176991/display-tiff-image-in-all-web-browser) – scessor

回答

4

TIF文件重新不是在Web浏览器

+0

Jeez,我不知道=//哈哈,你走了。对不起,这个问题! –

+0

PNG或JPEG几乎是你唯一的选择(PNG通常取代GIF)。 – ThatMatthew