实战经验(5)页面底部版权制作

几乎每个网页底部都会有一个版权板块,下面详细介绍版权板块制作方法。

一、底部版权(1)

在这里插入图片描述

  • 做法
  • 版权结构
    在这里插入图片描述
    HTML
<div class="copyright">
      <div class="wrapper">
          <div class="copyright-left">
              <a href="#"><img src="/images/logo.png"></a>
              <p>学成在线致力于普及中国最好的教育它与中国一流大学和机构合作提供在线课程。
                  © 2017年XTCG Inc.保留所有权利。-沪ICP备15025210号</p>
              <button type="submit">下载APP</button>
          </div>
          <div class="copyright-right">
              <dl>
                  <dt>关于学成网</dt>
                  <dd><a href="#">关于</a></dd>
                  <dd><a href="#">管理团对</a></dd>
                  <dd><a href="#">工作机会</a></dd>
                  <dd><a href="#">客服服务</a></dd>
                  <dd><a href="#">帮助</a></dd>
              </dl>
              <dl>
                  <dt>新手指南</dt>
                  <dd><a href="#">如何注册</a></dd>
                  <dd><a href="#">如何选课</a></dd>
                  <dd><a href="#">工作机会</a></dd>
                  <dd><a href="#">客服服务</a></dd>
                  <dd><a href="#">帮助</a></dd>
              </dl>
              <dl>
                  <dt>合作伙伴</dt>
                  <dd><a href="#">合作机构</a></dd>
                  <dd><a href="#">合作导师</a></dd>
              </dl>
          </div>
      </div>
  </div>

CSS

.copyright{
    margin-top: 60px;
    padding-top: 60px;
    height: 273px;
    background-color: #fff;
}
.copyright .wrapper{
    display: flex;
    justify-content: space-between;
}
.copyright-left{
    width: 432px;
    /*background-color: #005576;*/
}
.copyright p{
    margin-top: 24px;
    margin-bottom: 14px;
    font-size: 12px;
    color: #666666;
}
.copyright button{
    width: 120px;
    height: 36px;
    background-color: transparent;
    border: solid 1px #00a4ff;
     color:#00a4ff;
    font-size:16px;
}
.copyright .copyright-right{
    display: flex;
}
.copyright-right dl{
    margin-left: 130px;
}
.copyright dt{
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 23px;
}
.copyright dd{
    font-size: 14px;
    line-height: 24px;
    color: #666;
}

二、底部版权(2)

在这里插入图片描述
HTML

        <footer>
            <div class="wrapper">
<!--                服务-->
                <div class="service">
                    <ul>
<!--                        为什么用标题标签而不用span标签,
                            原因是因为h5标签是一个块级标签可以修改宽高,
                            而span不能故还要先转为block程序麻烦,所以使用h5。-->
                        <li><h5 class="pic1"></h5><p>价格亲民</p></li>
                        <li><h5 class="pic2"></h5><p>物流快捷</p></li>
                        <li><h5 class="pic3"></h5><p>品质新鲜</p></li>
                        <li><h5 class="pic4"></h5><p>售后无忧</p></li>
                    </ul>
                </div>
<!--                帮助中心-->
                <div class="help">
                    <div class="f_left">
                        <dl>
                            <dt>购物指南</dt>
                            <dd><a href="#">购物流程</a></dd>
                            <dd><a href="#">支付方式</a></dd>
                            <dd><a href="#">售后规则</a></dd>
                        </dl>
                        <dl>
                            <dt>购物指南</dt>
                            <dd><a href="#">购物流程</a></dd>
                            <dd><a href="#">支付方式</a></dd>
                            <dd><a href="#">售后规则</a></dd>
                        </dl>
                        <dl>
                            <dt>购物指南</dt>
                            <dd><a href="#">购物流程</a></dd>
                            <dd><a href="#">支付方式</a></dd>
                            <dd><a href="#">售后规则</a></dd>
                        </dl>
                        <dl>
                            <dt>购物指南</dt>
                            <dd><a href="#">购物流程</a></dd>
                            <dd><a href="#">支付方式</a></dd>
                            <dd><a href="#">售后规则</a></dd>
                        </dl>
                        <dl>
                            <dt>购物指南</dt>
                            <dd><a href="#">在线客服<span class="iconfont icon-Icon_customerservice"></span></a></dd>
                            <dd><a href="#">客服电话 400-0000-000</a></dd>
                            <dd><a href="#">工作时间 周一至周日 8:00-18:00</a></dd>
                        </dl>
                    </div>
                    <div class="f_right">
                        <ul>
                            <li>
                                <img src="/images/wechat.png">
                                <p>微信公众号</p>
                            </li>
                            <li>
                                <img src="/images/app.png">
                                <p>APP下载二维码</p>
                            </li>
                        </ul>
                    </div>

                </div>
<!--                    版权-->
                <div class="copyright">
<!--                    <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>-->
                    
<!--                    因为最后版权模块不需要提升百度搜索排名,所以直接用p便签嵌套即可-->
                    <p>
                        <a href="#">关于我们</a>|
                        <a href="#">帮助中心</a>|
                        <a href="#">售后服务</a>|
                        <a href="#">配送与验收</a>|
                        <a href="#">商务合作</a>|
                        <a href="#">搜索推荐</a>|
                        <a href="#">友情链接</a>|
                    </p>
                    <p>CopyRight © 小兔鲜</p>
                </div>
            </div>
</footer>

CSS

/*底部*/
footer{
    height: 582px;
    background-color: #F5F5F5;
}
footer .wrapper{
    margin-top: 40px;
}
/*服务*/
.service{
    height: 178px;
    border-bottom: 1px solid #E8E8E8;
}
.service ul{
    display: flex;
    justify-content: space-evenly;
    padding: 60px 0;
    font-size: 28px;
}
.service li span{
    height: 58px;
    width: 58px;
    background-image: url("../images/sprite.png");
}
.service ul li{
    display: flex;
    /*让底部四个图片和四个大字都居中*/
    line-height: 58px;
}
footer .help {
    display: flex;
    justify-content: space-between;
    padding-top: 60px;
    height: 303px;
    /*background-color: #5EB69C;*/
}
footer .help .f_left{
    display: flex;

}
footer .help .f_left dl{
    margin-right: 84px;
}
footer .help .f_left dt{
    margin-bottom: 30px;
    font-size: 18px;
}
footer .help .f_left a{
    font-size: 16px;
    color: #969696;
}
.help .f_left a span{
    margin-left: 5px;
    color: #00BE9A;
}
.help .f_right ul{
    display: flex;
    text-align: center;
}
.help .f_right li:first-child{
    margin-right: 55px;
}
.help .f_right ul img{
    margin-bottom: 10px;
    width: 120px;
    height: 120px;
}

/*版权*/
.copyright{
    text-align: center;
    font-size: 16px;
    color: #A1A1A1;
}
/*.copyright ul{*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    margin-bottom: 10px;*/
/*}*/
/*.copyright ul li a{*/
/*    padding: 0 10px;*/
/*    border-right: 1px solid #A1A1A1;*/
/*    font-size: 16px;*/
/*    color: #A1A1A1;*/
/*}*/
.copyright p{
    margin-bottom: 10px;
}
.copyright p a{
    margin: 0 10px;
    font-size: 16px;
    color: #A1A1A1;
}
  • 6
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是一个简单的个人博客模板: ```html <!DOCTYPE html> <html> <head> <title>我的博客</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <header> <h1>我的博客</h1> <nav> <ul> <li><a href="#">首页</a></li> <li><a href="#">关于我</a></li> <li><a href="#">文章</a></li> <li><a href="#">联系我</a></li> </ul> </nav> </header> <main> <section> <h2>最新文章</h2> <ul> <li> <h3><a href="#">文章标题</a></h3> <p>文章摘要</p> <a href="#">阅读更多</a> </li> <li> <h3><a href="#">文章标题</a></h3> <p>文章摘要</p> <a href="#">阅读更多</a> </li> <li> <h3><a href="#">文章标题</a></h3> <p>文章摘要</p> <a href="#">阅读更多</a> </li> </ul> </section> <section> <h2>关于我</h2> <p>这里写一些关于你的介绍。</p> <p>你可以写一些自己的经历、爱好、技能等等。</p> </section> </main> <footer> <p>© 2021 我的博客</p> </footer> </body> </html> ``` 上面的 HTML 代码中,有一个头部 `<header>`、一个主体 `<main>` 和一个底部 `<footer>`。头部包含了一个标题和一个导航栏,主体包含了最新文章和关于我两个部分,底部包含了版权信息。 你还需要创建一个 CSS 文件,来为网页添加样式。以下是一个简单的 CSS 文件: ```css body { font-family: Arial, sans-serif; margin: 0; padding: 0; } header { background-color: #333; color: #fff; padding: 20px; } header h1 { margin: 0; } nav { float: right; } nav ul { list-style: none; margin: 0; padding: 0; } nav li { float: left; margin-left: 20px; } nav li a { color: #fff; text-decoration: none; } main { max-width: 800px; margin: 0 auto; padding: 20px; } section { margin-bottom: 40px; } h2 { margin-top: 0; } ul { list-style: none; margin: 0; padding: 0; } li { margin-bottom: 20px; } h3 { margin-top: 0; } a { color: #333; text-decoration: none; } a:hover { text-decoration: underline; } footer { background-color: #ccc; padding: 10px; text-align: center; } ``` 这个 CSS 文件定义了网页的样式,例如背景色、字体、边距、行距等等。 你可以根据自己的需要对 HTMLCSS 进行修改,以实现自己想要的博客界面。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值