手记

水平线加小箭头的效果

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style>
        body{
            margin: 0;
            padding: 0;
        }
        .content{
            position: relative;
            width: 100%;
            height:200px;
            border-bottom:2px #000 solid;
        }
        .tag em{
            display: block;
            border-width: 20px;
            position: absolute;
            bottom: -40px;
            left:50%;
            transform:translateX(-50%);
            border-style: solid;
            border-color: #000 transparent transparent;
            font-size: 0;
            line-height: 0;
            z-index:1000;
        }
        .tag span{
            display: block;
            border-width: 20px;
            position: absolute;
            bottom: -36px;
            left:50%;
            transform:translateX(-50%);
            border-style: solid;
            border-color: #fff transparent transparent;
            font-size: 0;
            line-height: 0;
            z-index:1000;
        }
    </style>
</head>
<body>
<div class="content">
    <div class="tag">
        <em></em><span></span>
    </div>
</div>

</body>
</html>
32人推荐
随时随地看视频
慕课网APP

热门评论

想让箭头向上呢 修改哪里啊

查看全部评论