<!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