0
以下css在firefox中完美工作,但不包含IE(7)。为什么? 在IE 7 高度和宽度被应用但未显示背景。标签背景在IE7中不可见
#field-wrapper label{
background: url("images/1.jpg") no-repeat 0 0;
height: 150px;
display: block;
width: 160px;
}
以下css在firefox中完美工作,但不包含IE(7)。为什么? 在IE 7 高度和宽度被应用但未显示背景。标签背景在IE7中不可见
#field-wrapper label{
background: url("images/1.jpg") no-repeat 0 0;
height: 150px;
display: block;
width: 160px;
}
IE对图像格式很有趣。
您的jpg图像是否使用CMYK颜色?尝试使用RGB颜色进行保存。
您可以使用.png或.gif图片吗?请注意,透明的.png文件与IE6和IE7一起出错!
谢谢,把文件转换成gif解决了问题! – user16948 2012-03-15 06:58:05
我不知道,我们可以看到你的HTML或测试用例吗? – BoltClock 2012-03-14 15:54:04
98%表示背景只显示在右侧标签的最后2%。那是对的吗? – Deadlykipper 2012-03-14 15:56:31
@Deadlykipper,我把它改为0.还有问题 – user16948 2012-03-14 16:02:26