网页布局图(更新版)

html部分

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>主页</title>
    <link rel="stylesheet" href="css/css1.css">
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="http://at.alicdn.com/t/font_1380329_en4xw8hdno.css">
</head>
<body>
    <!--top start-->
    <div class="top">
        <div class="top-con">
            <div class="logo"></div>
            <ul class="menu">
                <li class="show"><a href="javascript:void(0)">首页</a></li>
                <li><a href="javascript:void(0)">在线课堂</a></li>
                <li><a href="javascript:void(0)">咨询</a></li>
                <li><a href="javascript:void(0)">搜索</a></li>
            </ul>
            <div class="reg-log">
                <i class="iconfont icon-user"></i>
                <a href="javascript:void(0)">登录</a>
                <div>/</div>
                <a href="javascript:void(0)">注册</a>
            </div>
        </div>
    </div>
    <!--top end-->
    <!--middle start-->
    <div class="middle">
        <div class="content"></div>
    </div>
    <!--middle end-->
    <!--bottom start-->
    <div class="bottom-top">
        <div class="bot-top-con">
            <div class="logo"></div>
            <p class="top-content">
                <span class="link">
                    <a href="javascript:void(0)">东北民谣</a>|
                    <a href="javascript:void(0)">呓语</a>|
                    <a href="javascript:void(0)">水乡</a>|
                    <a href="javascript:void(0)">小王</a>
                </span>
                <span class="about-me">
                    关于我: <i class="iconfont icon-weixin">托马斯,成</i>
                </span>
            </p>
            <p class="bottom-content">
            <span>
                偶像:毛不易
            </span>
            <span>
                本人现住址:哈尔滨</span>
        </p>
        </div>
    </div>
    <div class="bottom">
        <div class="bot-con">
            <p>德玛西亚 无坚不摧</p>
        </div>
    </div>
    <!--bottom end-->
</body>
</html>

共用部分

/*=======top=======*/
.top{
    width: 100%;
    height: 65px;
    background: black;
}
.top .top-con{
    width: 1200px;
    height: 100%;
    background: black;
    margin: 0 auto;
    color: white;
}
.top .top-con .logo{
    height: 100%;
    width: 235px;
    background: url("https://www.python.org/static/img/python-logo.png") no-repeat 0 -5px;
    float: left;
    margin-right: 60px;
}
.top .top-con .menu li{
    float: left;
    margin-left: 20px;
    height: 65px;
    line-height: 65px;
    box-sizing: border-box;
}

.top .top-con .menu a{
    display: inline-block;
    width: 80px;
    height: 65px;
    color: white;
    text-align: center;
}
.top .top-con .menu li.show{
    border-bottom: 3px solid rebeccapurple;
    background: #000000;
}
.top .top-con .menu li:hover{
    border-bottom: 3px solid rebeccapurple;
    background: #000000;
}
.top .top-con .reg-log{
    height: 65px;
    line-height: 65px;
    float: right;
    margin-right: 20px;
}
.top .top-con .reg-log i{
    font-size: 40px;
    color: #6fa026;
}
.top .top-con .reg-log a{
    height: 65px;
    width: 40px;
    color: white;
    line-height: 65px;
    display: block;
    float: right;
    text-align: center;
}
.top .top-con .reg-log div{
    height: 65px;
    width: 10px;
    float: right;
    text-align: center;
}


/*========top-end========*/
/*=======middle start=======*/
.middle{
    width: 100%;
    height: 800px;
    background: antiquewhite;
}
.middle .content{
    width: 1200px;
    height: 100%;
    background: white;
    margin: 0 auto;
}
/*=====middle end=====*/
/*=====bottom-top start======*/
.bottom-top{
    width: 100%;
    height: 120px;
    background: grey;
}
.bottom-top .bot-top-con{
    width: 1200px;
    height: 100%;
    background: wheat;
    margin: 0 auto;
    border: 1px solid wheat;
}
.bottom-top .bot-top-con .logo{
    background: url("https://www.python.org/static/img/python-logo.png") no-repeat 0 15px;
    float: left;
    width: 238px;
    height: 100%;
    margin-right: 60px;
}
.bottom-top .bot-top-con p{
    text-align: center;
    line-height: 40px;
}
.bottom-top .bot-top-con ,.bottom-top .bot-top-con .link a{
    color:white;
}
.bottom-top .bot-top-con .top-content{
    margin-top: 20px;
}
.bottom-top .bot-top-con .link,.bottom-top .bot-top-con .about-me{
    margin-left: 25px;
}
.bottom-top .bot-top-con .bottom-content span{
    margin-left: 10px;
}

/*=====bottom-top end======*/
/*=====bottom start=======*/
.bottom{
    width: 100%;
    background: black;
    height: 60px;
}
.bottom .bot-con{
    width: 1200px;
    height: 60px;
    background: black;
    margin: 0 auto;
    line-height: 60px;
    color: white;
    text-align: center;
    border: 1px solid black;
}
/*=====bottom end========*/

css重置部分

/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
a{
	text-decoration: none;
}

在这里插入图片描述
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值