css的背景图片显示不出来
我的css如下:
#fix {
width:30px;
height:46px;
cursor:pointer;
text-align:center;
vertical-align:middle;
line-height:1.8;
z-index:9999;
background-image:url('images/cart_icon.png');
-moz-opacity: 0.85;
opacity: 0.85;
filter:alpha(opacity=85);
}
如果写在我的php页面里则是正常的,但如果写在x.css文件然后再引用进来则背景图片显示不出来。但width,height,cursor等都有。
这是什么原因?