html:
<div class="home">
<div class="home-1">
<a href="">
<div class="font-4 none-5">
<div>HOME@</div>
</div>
<div class="font-4 none-6">
<div>HOME@</div>
</div>
</a>
</div>
<div class="home-2">
<div class="home-3">
<div class="text">
<div class="none-1">
</div>
<div class="none-2">
HOME
</div>
</div>
<a href="">
<div><img src="weiNiYanXuan-image/kongjian1.jpg" alt=""></div>
<div><img src="weiNiYanXuan-image/kongjian2.jpg" alt=""></div>
</a>
</div>
</div>
</div>
css:
.home{
color: -sharp333;
overflow: hidden;
}
.home-1{
height: 72px;
color: -sharp666;
line-height: 70px;
text-align: center;
border-left: 1px solid -sharpeaeaea;
}
.font-4{
width: 543px;
float: left;
color: -sharp333;
border: 1px solid -sharpeaeaea;
background-color: -sharpfff;
/*border-bottom-color: -sharpfff;*/
border-left: none;
font-size: 18px;
line-height: 70px;
text-align: center;
font-weight: bold;
}
.font-4 div{
margin: 0 auto;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/*.home-1 a .font-4 div:hover{*/
/*color:-sharpb4a078 ;*/
/*background-color: -sharpccc;*/
/*}*/
.home-2{
position: relative;
border: 1px solid -sharpeaeaea;
border-top: none;
padding: 40px 75px 0px 75px;
height: 601px;
}
.text{
margin-bottom: 30px;
height: 40px;
text-align: left;
}
.text div{
margin-left: 45px;
height: 40px;
font-size: 14px;
color: -sharp333;
line-height: 20px;
text-align: left;
}
.home-3 a{
display: block;
width: 940px;
height: 450px;
position: relative;
}
.none-1{
display: block;
}
.none-2{
position: absolute;
top: 0px;
margin-top: 40px;
margin-right: 75px;
display: none;
}
.none-4 img{
position: absolute;
bottom: 450px;
display: none;
}
.none-6:hover{
color:-sharpb4a078 ;
background-color: -sharpccc;
}
.none-6:hover .none-1{
display: none;
}
.none-6:hover .none-2{
display: none;
}
Please forgive me if the code is a little messy.