div必须设置width 和 height,而且不能小于图像的高宽。没有width height 则背景图片不显示#mainSearch
{
float: left;
position: relative;
margin: 0;
background:url('images/mainSearch_bg.jpg') no-repeat;
width:430px;
height:443px;
}
div background 不显示
猜你喜欢
转载自flyvszhb.iteye.com/blog/2242803
今日推荐
周排行