css制作三角形


HTML代码:

<div class="corner"></div>

css代码:
.corner{
            display: block;
            width: 0;
            border-top: 0 solid transparent;
            border-left: 10px solid transparent;
            border-right:10px solid transparent;
            border-bottom: 10px solid grey;
        }




你可能感兴趣的:(css)