Css 按钮图像不工作
我的代码附带了一个IE中未显示的图像:Css 按钮图像不工作,css,Css,我的代码附带了一个IE中未显示的图像: #upload_button{ background-image:url(images/upload.gif); width:215px; height:61px; background-repeat:no-repeat; border:none; } IE7和IE8不支持CSS属性“背景图像” 你需要把它换成新的 “背景:透明url();”下面的代码在IE 6/7/8中运行良好 #upload_button{ background-image:url(
#upload_button{
background-image:url(images/upload.gif);
width:215px;
height:61px;
background-repeat:no-repeat;
border:none;
}
IE7和IE8不支持CSS属性“背景图像”
你需要把它换成新的
“背景:透明url();”下面的代码在IE 6/7/8中运行良好
#upload_button{
background-image:url(http://www.gravatar.com/avatar/41d7639adf8a1916fab202db8cb16273?s=32&d=identicon&r=PG);
width:215px;
height:61px;
background-repeat:no-repeat;
border:none;
}
<input type="button" value="button" id="upload_button" />
#上传按钮{
背景图片:url(http://www.gravatar.com/avatar/41d7639adf8a1916fab202db8cb16273?s=32&d=identicon&r=PG);
宽度:215px;
高度:61px;
背景重复:无重复;
边界:无;
}
此外,不应添加重复内容。建议您检查图像位置并正确添加相对URL。\upload\u按钮
在此处引用哪个元素?