不知道如何解决它。我试图根据标签的类别制作不同的标识。的HTML是:在ie6中无<a>的背景
<div id="header">
<a href="/index.php" id="logo" class="cet">
<h1 id="l">title</h1>
</a>
</div>
和CSS是:
#header {
height:204px;
background: url(../img/il-01.jpg) no-repeat 400px 2em;
position:relative;
clear:both;
}
#header #logo {
display:block;
position:absolute;
left:2em;
top:3em;
width:355px;
height:107px;
overflow:hidden;
}
#header #logo.cat { background: url(../img/logo_cat.png) no-repeat -1px top; }
#header #logo.cet {background: url(../img/logo_cet.png) no-repeat -10px -40px;}
而且如果类设置为“猫”一切都很好,但如果它被设置为“CET”我不能看图像在IE6中。在任何其他浏览器中,背景显示正确。
背景图像的大小差别不大,它可能是问题吗?
非常感谢你对你的答案
不要使用Internet Explorer 6吗? – Joe 2010-09-23 14:44:30
这是否适用于其他浏览器? – jwueller 2010-09-23 14:47:39
我希望我不能使用IE6,但它是俄罗斯一些政治结构的突发奇想* palmface * – 2010-09-23 14:56:09