我的网站位于 avidest.com/test。我正在尝试使背景图像从页面顶部向下移动到“我们的在线服务”部分。由于某种原因,它提前结束了,并且有一段页面可以看到黑体背景。我不想显示这个黑色部分。这是CSS:
.header {
/*background: #f0f7f7 url(images/header_bg.gif) top repeat-x;*/
background: transparent;
padding: 0;
margin: 0 auto;
height: 70px;
}
.block_header {
margin: 0 auto;
width: 980px;
padding: 0;
border: none;
}
.logo {
float: left;
padding: 0;
margin: 0;
width: 242px;
}
.uppercontain {
background: url(images/slider_bg.gif) no-repeat;
background-size: 100%;
min-width: 1050px;
min-height: 700px;
}
.slider {
/* background:url(images/slider_bg.gif) no-repeat; background-size: 100%; min-width: 1050px; */
background: transparent;
margin: 0 auto;
padding: 0;
height: 100%;
}
.slider .gallery {
margin: 0 auto;
width: 1050px;
height: 383px;
padding: 0;
} /*width was 880px*/
.slider .formbox {
float: right;
}
这是它在页面上的显示方式:
<body bgcolor="#000000">
<div class="main">
<div class="uppercontain">
<div class="header">
<div class="block_header">
<div class="logo"><a href="index.html"><img src="images/logo.gif" width="242" height="94" border="0" alt="logo" /></a></div>
</div>
</div>
<div class="slider">
<div class="gallery">
<div class="form box"> Form is here </div>
</div>
</div>
</div>
Rest of content
</div>