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