亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

header的border設置成8px才現實正常?

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8" />

<title></title>

<style type="text/css">

*{

margin: 0;

padding: 0;

}

header{

width: 762px;

height: 92px;

border: 8px solid #BADBDB;

background: url(img/banner.gif) no-repeat;

text-align: right;

margin: 0 auto;

}

header a:visited,a{

text-decoration: none;

color: #000;

font-weight: bold;

}

header a:hover,a:active{

color: #ffffff;

background: #00BFFF;

}

.wrapper{

width: 770px;

margin: 0 auto;

}

.content{

border: 4px solid #badbdb;

padding-top: 34px;

width: 770px;

}

img{

margin: 10px 18px;

border: 1px solid #CCCCCC;

}

.book{

background: url(img/t_book.gif) no-repeat #eff9f9;

}

footer{

text-align: center;

padding: 20px 0;

}

</style>

</head>

<body>

<div class="wrapper">

<header>

<a href="#">聯系我們</a>

<a href="#">站點地圖</a>

</header>

<div class="content book">

<img src="img/book1.jpg" width="80px" height="80px" />

<img src="img/book2.jpg" width="80px" height="80px" />

<img src="img/book3.jpg" width="80px" height="80px" />

<img src="img/book4.jpg" width="80px" height="80px" />

<img src="img/book5.jpg" width="80px" height="80px" />

</div>

</div>

<footer>copyright ? 2004-2012 Jimmyspa.com All Rights Reserved.</footer>

</body>

</html>


正在回答

1 回答

你不要寫這么亂,你要是想從外往里寫,你就從外往里,不要搞跳躍式的。

你“.wrapper”大框架寬度設定的770px,<header>就是762px了,“.content”又是770px,肯定差一截啊。

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
網頁布局基礎
  • 參與學習       214678    人
  • 解答問題       1833    個

讓你精通CSS中三大定位機制,徹底掌握網頁布局的相關知識

進入課程

header的border設置成8px才現實正常?

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號