Blogger Information
Blog 51
fans 3
comment 1
visits 36125
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
开发步骤一、html页面部分(二)—2018年5月17日15时28分
Gee的博客
Original
810 people have browsed it

实例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>瀿澕落儘 [http://88526.qzone.qq.com]</title>
    <link rel="stylesheet" type="text/css" href="/static/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/static/css/site.css">
    <link rel="stylesheet" type="text/css" href="/static/font-awesome/css/font-awesome.min.css">
</head>
<body>
    <!-- 顶部 -->
    <div class="header">
        <div class="container">
            <div class="left">
                <a class="logo" href=""></a>
                <a href=""><i class="fa fa-home"></i>他的主页</a>
                <a href=""><i class="fa fa-user"></i>他的动态</a>
            </div>

            <div class="right">
                <div class="searchbox">
                    <input type="text" placeholder="用户/游戏/动态">
                    <a href=""><i class="fa fa-search"></i></a>
                </div>
                <div class="userinfo">
                    <span>|</span>
                    <a href="">返回个人中心</a>
                    <span>|</span>
                    <img src="/static/imgs/userinfo.png" alt="">
                    <a class="user" href="">Appler [退出]</a>
                    <a href=""><i class="fa fa-cog"></i></a>
                    <a href=""><i class="fa fa-diamond"></i></a>
                </div>
            </div>
        </div>
    </div>

    <!-- 中间 -->
    <div class="body">
        <!-- 中间上部 -->
        <div class="body-up">
            <div class="container">
                <div class="user-name">
                    <div class="name-address">
                        <h1>瀿澕落儘</h1>
                        <a href="" class="level"></a>
                        <a href="" class="fly"></a>
                        <div class="address">瀿澕落儘 http://88526.qzone.qq.com</div>
                    </div>
                    <div class="add-like">
                        <a href=""><i class="fa fa-plus"></i>加好友</a>
                        <a href=""><i class="fa fa-thumbs-up"></i>赞 | 0</a>
                    </div>
                </div>

                <div class="user-detail">
                    <div class="detail">
                        <div class="avatar">
                            <img src="/static/imgs/userinfo.png" alt="">
                        </div>
                        <div class="nickname">
                            <p>猪哥@php.cn</p>
                        </div>
                        <div class="vip">
                            <img src="/static/imgs/vip_year_8.png">
                            <div class="growth">
                                <span>成长值 360000  成长速度 35点/天</span>
                                <div class="progress">
                                    <div class="progress-bar progress-bar-warning" role="progressbar" style="width: 60%;"></div>
                                </div>
                            </div>
                            <a href=""><img src="/static/imgs/icon-vip-fee-year.png"></a>
                            <div class="lev"></div>
                        </div>
                        <div class="navigation">
                            <ul>
                                <li><a href="">主页</a></li>
                                <li><a href="">日志</a></li>
                                <li><a href="">留言板</a></li>
                                <li><a href="">相册</a></li>
                                <li><a href="">个人档</a></li>
                                <li><a href="">好友秀</a></li>
                                <li><a href="">更多</a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="weather">
                            <img src="http://qzonestyle.gtimg.cn/aoi/img/weather/weather-cloudy-sunny.png">
                            <p class="temperature">30°</p>
                            <div class="addr-time">
                                <p>合肥</p>
                                <p class="time">4月24日</p>
                            </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 中间下部 -->
        <div class="body-down">
            <div class="container">
                <!-- 左边 -->
                <div class="col-md-4">
                    <div class="left-three-num">
                        <div class="col-md-4">
                            <a href=""><span>1</span><br><span class="num-name">照片</span></a>
                        </div>
                        <div class="col-md-4 num-middle">
                            <a href=""><span>1</span><br><span class="num-name">说说</span></a>
                        </div>
                        <div class="col-md-4">
                            <a href=""><span>0</span><br><span class="num-name">日志</span></a>
                        </div>
                    </div>
                    <div class="person-info">
                        <ul class="list-group">
                            <li class="list-group-item list-group-title">个人档</li>
                            <li class="list-group-item"><i class="fa fa-vcard-o"></i>瀿澕落儘</li>
                            <li class="list-group-item"><i class="fa fa-wpforms"></i>28岁  白羊座 男</li>
                            <li class="list-group-item"><i class="fa fa-shopping-bag"></i>软件公司</li>
                            <li class="list-group-item"><i class="fa fa-graduation-cap"></i>来自 安徽合肥</li>
                            <li class="list-group-item"><a href="">查看详细资料</a></li>
                        </ul>
                    </div>
                    <div class="leave-message">
                        <ul class="list-group">
                            <li class="list-group-item list-group-title">留言板</li>
                            <li class="list-group-item list-group-board">
                                <textarea class="form-control" id="board_msg" placeholder="我也留个言吧"></textarea>
                                <div class="publish-message">
                                    <a href=""><i class="fa fa-smile-o"></i></a>
                                    <div class="right-publish">
                                        <label><input type="checkbox">私密留言</label><i class="fa fa-diamond"></i>
                                        <button onclick="add_board()">发表</button>
                                    </div>
                                </div>
                            </li>
                            <li class="list-group-item message-detail">
                                <div><span>某男子</span><strong> : </strong>123</div>
                                <p>2018-05-15 15:09:49</p>
                            </li>
                            <li class="list-group-item"><a href="">查看更多留言</a></li>
                        </ul>
                    </div>
                </div>
                <!-- 右边 -->
                <div class="col-md-8"></div>
            </div>
        </div>
    </div>

    <!-- 底部 -->
    <div class="footer"></div>
</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例

实例

body {
    margin: 0;
    padding: 0;
    background-color: #E9E9E9;
}

.header {
    height: 40px;
    background-color: #D18B00;
}
.header a {
    text-decoration: none;
}
.header .left {
    float: left;
    height: 40px;
    width: 400px;
    /* background-color: yellow; */
}
.header .left .logo {
    float: left;
    width: 91px;
    height: 40px;
    /* background-color: green; */
    background-image: url(/static/imgs/icon.png);
}
.header .left a {
    color: #fff;
}
.header .left i {
    line-height: 40px;
    /* background-color: skyblue; */
    margin-left: 20px;
    margin-right: 8px;
    color: white;
    font-size: 1.2em;
}
.header .right {
    float: right;
    height: 40px;
    width: 450px;
    /* background-color: red; */
    
}
.header .right .searchbox {
    float: left;
    line-height: 40px;
    /* background-color: skyblue; */
    color: white;
}
.header .right input {
    width: 135px;
    height: 20px;
    background-color: #DDA840;
    border: none;
    border-radius: 5px;
    padding: 0 20px 0 5px;
}
input::-webkit-input-placeholder {
    color: #EEEEEE;
    font-size: 0.8em;
}
.header .right .searchbox a {
    float: right;
    position: absolute;
    top: 0;
    margin-left: 120px;
    color: white;
    /* background-color: gray; */
}
.header .right .userinfo {
    float: right;
    line-height: 40px;
}
.header .right .userinfo .user{
    font-size: 0.8em;
    margin: 0 5px;
}
.header .right .userinfo a {
    color: #fff;
}
.header .right .userinfo span {
    margin:0 5px;
    color: #E69700;
}
.header .right .userinfo img {
    width: 24px;
    height: 24px;
}
.header .right .userinfo i {
    margin:0 10px;
}

.body {
    background-image: url(/static/imgs/top.jpg);
    background-repeat: no-repeat;
}
.body-up .user-name .name-address {
    float: left;
    /* background-color: skyblue; */
}
.body-up .user-name .name-address h1 {
    float: left;
    color: #CC8F14;
}
.body-up .user-name .name-address .level{
    float: left;
    background-image: url(/static/imgs/icon3.png);
    background-position: -36px 0;
    width: 16px;
    height: 16px;
    margin: 42px 8px 0 5px;
}
.body-up .user-name .name-address .fly{
    float: left;
    background-image: url(/static/imgs/icon.png);
    background-position: -204px -76px;
    width: 34px;
    height: 22px;
    margin-top: 36px;
}
.body-up .user-name .name-address .address {
    clear:both;
    color: #CC8F14;
}
.body-up .user-name .add-like {
    float: right;
    /* background-color:skyblue; */
    margin-top: 70px;
}
.body-up .user-name .add-like a {
    background-color: #939393;
    border-radius: 30px;
    color: #fff;
    margin: 0px 10px;
    padding: 10px;
}
.body-up .user-name .add-like a i {
    margin: 0px 10px;
}
.body-up .user-detail {
    padding-top: 50px;
    /* background-color: skyblue; */
    clear: both;
}
.body-up .user-detail .detail {
    float: left;
    width: 550px;
    /* background-color: #063; */
}
.body-up .user-detail .detail .avatar {
    float: left;
    border: 3px solid #fff;
    border-radius: 3px;
    width: 128px;
    height: 128px;
    margin-right: 20px;
}
.body-up .user-detail .detail .avatar img {
    width: 100%;
    height: 100%;
}
.body-up .user-detail .detail .nickname {
    color: #CC8F7C;
    font-size: 1.5em;
}
.body-up .user-detail .detail .vip img{
    float: left;
}
.body-up .user-detail .detail .vip .growth{
    float: left;
    color: #CC8F7C;
    font-size: 0.8em;
    margin: 10px;
}
.body-up .user-detail .detail .vip .progress {
    width: 180px;
    height: 8px;
}
.body-up .user-detail .detail .vip a{
    float: left;
    margin-top: 10px;
    margin-right: 20px;
}
.body-up .user-detail .detail .vip .lev {
    float: left;
    margin-top: 10px;
    background-image: url(/static/imgs/profile-v9-adg.png);
    background-position: -1374px -50px;
    width: 22px;
    height: 20px;
}
.body-up .user-detail .detail .navigation {
    margin-top: 80px;
}
.body-up .user-detail .detail .navigation ul li {
    float: left;
    margin-left: 20px;
    list-style: none;
}

.body-up .user-detail .weather {
    float: right;
    /* background-color: #063; */
    margin-top: 30px;
}
.body-up .user-detail .weather img {
    float: left;
}
.body-up .user-detail .weather .temperature {
    float: left;
    font-size: 3em;
    color: #CC8F14;
}
.body-up .user-detail .weather .addr-time {
    float: left;
    font-size: 1.2em;
    color: #CC8F14;
}
.body-up .user-detail .weather .addr-time .time {
    font-size: 0.7em;
}

.body-down {
    margin-top: 50px;
}
.body-down .col-md-4 {
    padding: 0;
}
.body-down .left-three-num {
    height: 102px;
    background-color: #FFFCF4;
    text-align: center;
    border: 1px solid #EBE3BC;
    border-radius: 4px;
    /* display: table-cell; */
    /* vertical-align: middle; */
}
.body-down .left-three-num .col-md-4 {
    /* line-height: 61px; */
    height: 60px;
    font-size: 28px;
    margin-top: 21px;
    padding-top: 5px;
    line-height: 25px;
}
.body-down .left-three-num .col-md-4 a {
    color: #000;
    
}
.body-down .left-three-num .num-middle {
    border-left: 1px solid #EDE8D1;
    border-right: 1px solid #EDE8D1;
}
.body-down .left-three-num .col-md-4 .num-name {
    font-size: 14px;
}
.body-down .person-info {
    margin-top: 10px;
}
.body-down .person-info .list-group li {
    background-color: #FFFCF4;
}
.body-down .person-info .list-group li i {
    margin-right: 10px;
}
.body-down .person-info .list-group li a {
    color: #CC8F14;
}
.body-down .person-info .list-group .list-group-title {
    background-color: #FAF7E6;
    font-weight: bold;
}
.body-down .leave-message .list-group li {
    background-color: #FFFCF4;
    overflow: hidden;
}
.body-down .leave-message .list-group .list-group-title {
    background-color: #FAF7E6;
    font-weight: bold;
}
.body-down .leave-message .list-group li a {
    color: #CC8F14;
}
.body-down .leave-message .list-group .publish-message {
    margin-top: 5px;
}
.body-down .leave-message .list-group .publish-message a {
    float: left;
    font-size: 20px;
}
.body-down .leave-message .list-group .publish-message .right-publish {
    float: right;
}
.body-down .leave-message .list-group .publish-message .right-publish i {
    color: #CC8F14;
}
.body-down .leave-message .list-group .publish-message button {
    background-color: #E6B85C;
    color: #fff;
    border: none;
    border-radius: 3px;
}
.body-down .leave-message .list-group .message-detail span {
    color: #CC8F14;
}
.body-down .leave-message .list-group .message-detail p {
    margin-top: 10px;
    color: #8F808E;
}

.footer {
    height: 100px;
}

运行实例 »

点击 "运行实例" 按钮查看在线实例

效果图:

搜狗截图20180517152927.png

Correction status:Uncorrected

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post