<header>
????????????<div?class="container?clearfloat">
????????????????<div?class="header-logo">
????????????????????<a?href="">
????????????????????</a>
????????????????</div>
????????????????<ul?class="header-nav?clearfloat">
????????????????????<li?class="item">
????????????????????????<a?href="">
????????????????????????????HOME
????????????????????????</a>
????????????????????</li>
????????????????????<li?class="item">
????????????????????????<a?href="">
????????????????????????????PORTFOLIO
????????????????????????</a>
????????????????????</li>
????????????????????<li?class="item">
????????????????????????<a?href="">
????????????????????????????TEAM
????????????????????????</a>
????????????????????</li>
????????????????????<li?class="item">
????????????????????????<a?href="">
????????????????????????????CONTACT?US
????????????????????????</a>
????????????????????</li>
????????????????</ul>
????????????</div>
????????</header>li{list-style-type:?none;}
header{
height:?94px;
background:?#2e2e2e;
}
.container{
position:?relative;
height:?94px;
width:?1584px;
margin:?0?auto;
}
footer{
height:?110px;
background:?#000;
}
.header-logo{
float:?left;
margin-top:?32px;
}
.header-logo?a{
height:?31px;
width:?141px;
background:?url('../img/logo.jpg');
}
.header-nav{
float:?right;
font-size:?14px;
}
3 回答

學習js
TA貢獻85條經驗 獲得超55個贊
1.為什么瀏覽器拉開有空白:.container{?width:?1584px;},你超出了設置的寬度
2.為什么logo不出來,因為你給父級header設置了?background:?#2e2e2e;logo被背景色擋住了
- 3 回答
- 0 關注
- 1865 瀏覽
相關問題推薦
添加回答
舉報
0/150
提交
取消