编写学校课程导航

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            list-style: none;
            text-decoration: none;
        }

        .wrap {
            width: 222px;
            height: 321px;
            background-color: #F5F9FC;
            border: 1px solid #AACBEE;
            margin: 100px auto;
        }

        img {
            vertical-align: middle;
        }

        h3 {
            color: #1F376D;
            font-weight: 700;
            font-size: 14px;
            margin-left: 7px;
            width: 211px;
            height: 30px;
            line-height: 30px;
            border-bottom: 1px solid #AACBEE;
        }

        li {
            width: 211px;
            height: 30px;
            color: black;
            font-size: 18px;
            line-height: 32px;
            margin-left: 6px;
            border-bottom: 1px solid #AACBEE;
        }

        li#last {border-bottom:none;

        }

        li>a {
            display: inline-block;
            width: 189px;
            margin-left: 6px;
        }

        a {
            color: black;
        }


        li>.jiantou {
            display: inline-block;
            width: 0px;
            height: 0px;
            border-width: 5px;
            border-style: solid;
            border-color: transparent transparent transparent #AACBEE;
        }


        .line {
            width: 211px;
            height: 1px;
            background-color: #AACBEE;
            margin-left: 6px;
        }

        a:hover {
            color: red;
        }
    </style>
</head>

<body>
    <div class="wrap">
        <h3>
            <img src="./图片素材/title_icon.gif" alt="shu">课程导航
        </h3>
        <ol>
            <li> <a href="#">ACCP 软件工程师</a> <span class="jiantou"></span></li>
            <li>  <a href="#">BTEST 软件测试工程师</a> <span class="jiantou"></span></li>
            <li> <a href="#">BENET 网络工程师</a> <span class="jiantou"></span></li>
            <li> <a href="#">JBNS 网站工程师</a> <span class="jiantou"></span></li>
            <li> <a href="#">ACCP 启蒙星</a> <span class="jiantou"></span></li>
            <li> <a href="#">ANDROID 软件工程师</a> </span> <span class="jiantou"></span></li>
            <li> <a href="#">JAVA 软件工程师</a> <span class="jiantou"></span></li>
            <li> <a href="#">.NET 软件工程师</a> <span class="jiantou"></span></li>
            <li id="last"> <a href="#">网络营销</a>  <span class="jiantou"></span></li>
        </ol>
    </div>
</body>
</html>

 结构分析:

注意事项:“网络营销”所在栏下面没有“下边框”,所以最后一个li给类选择器,利用选择器权重大小的关系去除最后一个li下边框。

 

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值