02-CSS基础与进阶-day14

html+css技术去实现一个静态网站
1 企业站
http://www.boyaa.com/ 首页
大家课后完成 游戏http://www.boyaa.com/game.html
http://www.boyaa.com/news.html
2 电商类网站
京东 淘宝 天猫 小米

================================================
*.psd
美工---------->前端开发人员--------->网页(PC+移动端页面)
*.png
================================================
1 网站是一系列网页的集合
2 网站目录结构
-boyaa
--*.html
--css文件夹 管理css
--js文件夹 管理js
--img文件夹 管理图片
--font文件夹 管理字体图标

 

index.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>博雅首页</title>
    <link rel="stylesheet" type="text/css" href="css/reset.css" />
    <link rel="stylesheet" type="text/css" href="css/common.css" />
</head>
<body>
    <!--Header部分开始-->
    <div class="header">
        <div class="inner_c">
            <h1 class="logo">
                <a href="index.html">博雅互动,手机游戏</a>
            </h1>
            <ul class="nav">
                <li class="current"><a href="index.html">首页</a></li>
                <li><a href="game.html">博雅游戏</a></li>
                <li><a href="news.html">博雅新闻</a></li>
                <li><a href="#">关于我们</a></li>
                <li><a href="#">客服中心</a></li>
                <li><a href="#">投资者关系</a></li>
            </ul>
            <div class="join-us">
                <a href="#">加入我们</a>
            </div>
        </div>
    </div>
    <!--Header部分结束-->
    <!--banner部分开始-->
    <div class="banner">
        <ul>
            <li><img src="" alt=""></li>
            <li><img src="" alt=""></li>
            <li><img src="" alt=""></li>
            <li><img src="" alt=""></li>
        </ul>
        <ol>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
        </ol>
    </div>  
    <!--banner部分结束-->
</body>
</html>

common.css

/*
   公共类
*/
body {
    font-size: 14px;
    color: #444866;
    font-family: "Arial","微软雅黑","宋体";
}
a {
    text-decoration: none;
    color: #444866;
}

a:hover {
    color: #33b972;
}

.inner_c {
    width: 1000px;
    margin: 0 auto;
}

/*
   头部header部分
*/
.header {
    height: 58px;
    background-color: #000;
    background-color: #191d3a;
}

.header .logo {
    width: 205px;
    padding: 10px 0 0 20px; 
    float: left;
    /* background-color: red; */
}

.header .logo a {
    background: url(../img/logo.png) no-repeat;
    width: 157px;
    height: 35px;   
    display: block;
    text-indent: -9999em;
    overflow: hidden;
}

.header .nav {
    float: left;
    width: 654px;     
    overflow: hidden;
    border-left: 1px solid #252947;
}

.header .nav li {
    height: 58px;
    line-height: 58px;
    float: left;
    text-align: center;
    width: 85px;
    border-right: 1px solid #252947;   
}

.header .nav li a {
    color: #818496;
    display: block;
}

.header .nav li.current {
    background-color: #252947;
}

.header .nav li.current a {
    color: #fff;
}

.header .join-us {
    float: left;
    width: 100px;
    padding-top: 12px;
}

.header .join-us a {
    width: 98px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    color: #fff;
    background: #38b774;
    display: block;
    border-radius: 5px;
    border: 1px solid #3aca7a;
}

index.css

index.css

reset.css

blockquote,body,button,dd,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,hr,input,legend,li,ol,p,pre,td,textarea,th,ul{margin:0;padding:0}
ol,ul {
    list-style: none;
}

 

转载于:https://www.cnblogs.com/HiJackykun/p/11087280.html

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值