以下是我的代码,在除IE6以外的浏览器正常。.box{background:url(http://img02.taobaocdn.com/imgextra/i2/135559106/T20Ce2XBhXXXXXXXXX-135559106.jpg)50%100%no-repeat;}
.box{background:url(http://img02.taobaocdn.com/imgextra/i2/135559106/T20Ce2XBhXXXXXXXXX-135559106.jpg)50%100%no-repeat;}
{background:url(http://img02.taobaocdn.com/imgextra/i2/135559106/T20Ce2XBhXXXXXXXXX-135559106.jpg)50%100%no-repeat;}
background:url(http://img02.taobaocdn.com/imgextra/i2/135559106/T20Ce2XBhXXXXXXXXX-135559106.jpg)50%100%no-repeat;}
}
如果把imgsrc换成与box的background不一样就能正常显示。但是因为图片的高度不固定,所以src和background必须一样。。咋搞呢
但是因为图片的高度不固定,所以src和background必须一样。。咋搞呢
慕盖茨4494581
相关分类