所以我有这段代码(在http://localhost/index.html中):
<input type="button" value="Yea" class="button" />
使用CSS样式(在http://localhost/min/css.css中):
.button {
background-image: url(../images/button.gif);
}
但是,后台不会出现在任何版本的Internet Explorer中。我做错了什么?
答案 0 :(得分:3)
IE的known issues属性为{{3}}。看看当您使用background-image
时会发生什么。
background
或者,您可以尝试
.button {
background: white url('../images/button.gif') no-repeat top;
}
答案 1 :(得分:0)
.button{
background: transparent url('../images/backrgound.jpg') no-repeat top center;
}
CSS标准 背景:颜色网址 重复部分和职位
JPEG图片
检查图像是否为JPEG2000,如果是,则打开任何图像编辑器并使用正确的jpeg扩展名再次保存