纯CSS箭头

先看效果图:


代码如下:


<html>
        
<head>
    <title></title>
    <style>
    .arbox {
           position: relative;
        top: -1rem;
        display: inline-block;
        margin-left: 2rem;
        float: left;
        margin-top: 1rem;
        }
        .box{
            float: left;
            width: 3rem;
          height: 3rem;
          border: 1px solid #000;
          border-radius: 50%;
            line-height: 43px;
            margin-right: 10px;
            background-color: #02c8a7;
            text-align: center;
            color: #fff;
            position: relative;
        float: left;
        display: inline-block;
        margin-left: 1.5rem;
        top: 1rem;
        left: 2rem;
         margin-top: -2rem;
        }

    .arr {
       width: 0;
          height: 0;
          overflow: hidden;
          border-width: 0.7rem;
          border-style: dashed dashed dashed solid;
          border-color: transparent transparent transparent #000;
          position: absolute;
          left: 2.1rem;
    }

    .block {
       background-color: #000;
          height: 0.5rem;
          left: 3px;
          overflow: hidden;
          position: absolute;
          top: 0.45rem;
          width: 2rem;
    }
    .container{
    	margin-top: 2rem;
    }
</style>
    </head>
    <body>
    <div class="container">
    	<div class="box">导航</div>
    <div class="arbox">
        <div class="arr"></div>
        <div class="block"></div>
    </div>
    <div class="box">导航1</div>
    </div>
    
    </body>
    </html>



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值