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 不显示
最新推荐文章于 2023-10-27 17:17:26 发布