
原圖

結(jié)構(gòu)分析圖

效果圖
閃閃是文字,后面緊跟一個圖片,然后是一個帶有背景圖片的button,這三個放到一個div里面,加一個bottom的border
下面四個是四個button,放到一個大的div里面文字居中,padding設(shè)置一個值即可
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
.main-box{
width: 208px;
height: 384px;
border: 1px solid red;
margin: 10px auto;
}
.title{
height: 25px;
background-color: blanchedalmond;
line-height: 25px;
font-size: 14px;
font-family: "微軟雅黑";
padding-left: 9px;
}
.photo{
width: 180px;
height: 180px;
border: 1px solid yellow;
margin: 10px auto;
}
.wb{
margin: 0 auto;
text-align: center;
border-bottom: 1px dotted yellow;
padding-bottom: 10px;
}
.wb input{
width: 68px;
height: 23px;
margin-top: 10px;
background-image: url(images1/vb.jpg);
background-repeat: no-repeat;
background-color:#EEEEF2;
}
.friend{
text-align: center;
padding-top: 20px;
}
.friend input{
width: 67px;
height: 21px;
outline-style: none;
margin-bottom: 5px;
}
</style>
</head>
<body>
<div class="main-box">
<div class="title">
個人資料
</div>
<div class="photo">
<img src="images1/1.jpg"/>
</div>
<div class="wb">
閃閃
<img src="images1/v.jpg"/>
<br />
<input type="button" name="" id="" value="微博" />
</div>
<div class="friend">
<input type="button" name="" id="" value="加好友" />
<input type="button" name="" id="" value="加好友" />
<input type="button" name="" id="" value="加好友" />
<input type="button" name="" id="" value="加好友" />
</div>
</div>
</body>
</html>