css绘制小图标集锦

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .heart {
            position: relative;
            width: 300px;
            height: 300px;
            transform: rotate(45deg);
            -ms-transform: rotate(45deg);
            -moz-transform: rotate(45deg);
            -webkit-transform: rotate(45deg);
            -o-transform: rotate(45deg);
            background: red;
        }
        .heart:before, .heart:after {
            position: absolute;
            display: block;
            content: '';
            width: 300px;
            height: 300px;
            border-radius: 100%;
            background: red;
        }
        .heart:before {
            left: -50%;
            top: 0;
        }
        .heart:after {
            right: 0;
            top: -50%;
        }
        .ex-search {
            position: relative;
        }
        .ex-search:before {
            content: ' ';
            position: absolute;
            width: 30px;
            height: 30px;
            border: 1px solid #666;
            border-radius: 30px;
            box-shadow: inset 1px 1px 10px rgba(0,0,0,.3);
        }
        .ex-search::after {
            content: ' ';
            position: absolute;
            width: 18px;
            height: 5px;
            background: #666;
            border-radius: 5px 0 0 5px;
            -webkit-transform: rotate(225deg);
            -moz-transform: rotate(225deg);
            -ms-transform: rotate(225deg);
            -o-transform: rotate(225deg);
            transform: rotate(225deg);
        }
        .ex-search:before {
            top: 0;
            left: 0;
        }
        .ex-search:after {
            right: -42px;
            bottom: -36px;
        }
    </style>
</head>
<body>
<div style="margin: 100px auto;width: 80%">
    <div class="heart"></div>
</div>
<div style="margin: 100px auto;width: 80%">
    <span class="ex-search"></span>
</div>
</body>
</html>

添加删除图标:http://blog.csdn.net/luckymaoyy/article/details/53455284
小图标1:http://blog.csdn.net/liu_jiachen/article/details/78634457
图标库:https://kliuj.github.io/css-icons/
小图标2:http://blog.csdn.net/OBKoro1/article/details/65938980

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值