css实现的下拉三角形

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style lang="en">
        ul li{
            list-style: none;
        }
        s{     
            margin-left: 500px;
            position: absolute;
            border-color: red transparent transparent;
            border-style: solid dashed dashed;
            border-width: 10px;
            font-size: 0;
            height: 0;
            line-height: 0;
            width: 0;
        }
       ul li:hover s{
            -webkit-transform: rotate(180deg);
            -webkit-transform-origin:50% 30% 0 ; 
            -webkit-transition: transform 0.2s ease-in;
            }
    </style>
</head>
<body>
    <ul>
        <li><s>&nbsp;</s></li>
    </ul>
</body>
</html>

 

欢迎分享本文,转载请保留出处:前端ABC » css实现的下拉三角形

赞 (0)
分享到:更多 ()

发表评论 0