CSS 折角效果

1

<style type="text/css">
        .div1 {
             200px;
            height: 200px;
            background-color: #ff6a00;
            border- 6px;
            margin: 0 auto;
        }


            

        .div2 {
            position: relative;
             0;
            height: 0;
            border: 20px solid black;
            border-color:transparent  #ffd800 #ffd800 transparent ;
            background-color:#fff;
            font-size:xx-small;
            text-align:left;
        }
    </style>

  2:HTML

  <div class="div1">
        <div class="div2">
            折角
        </div>
    </div>

  

原文地址:https://www.cnblogs.com/lgjc/p/5854697.html