個人資料

原圖
結(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>

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容