zoukankan      html  css  js  c++  java
  • css3 伪类实现右箭头→

    css3 实现右箭头→

    <!DOCTYPE html>
     <html lang="en">
     <head>
         <meta charset="UTF-8">
         <title>Document</title>
     </head>
     <style>
    .divtest{
        position: absolute;
        top: 100px;
        left: 100px;
        height: 3px;
        width: 10px;
        padding-left: 30px;
        background: red;
        line-height: 40px;
    }
    .divtest:before{
       content: '';
        position: absolute;
        top: -3px;
        right: -1px;
        width: 7px;
        height: 7px;
        border-top: 2px solid red;
        border-right: 2px solid red;
        transform: rotate(45deg);
    }
    
    </style>
     <body>
         <div class="divtest">
    <!-- 这是一个箭头 -->
    </div>
     </body>
     </html>
  • 相关阅读:
    数组
    对象
    js继承
    js原型原型链
    es6(初级)
    canvas背景
    Angular.js进阶
    Angular.js-2入门
    angular.js-1初识
    js之广告
  • 原文地址:https://www.cnblogs.com/Ananiah/p/12017477.html
Copyright © 2011-2022 走看看