勾:
/**绿色勾*/
.myicon-tick-checked {
display: inline-block;
position: relative;
width: 15px;
height: 15px;
border-radius: 50%;
background-color: #2ac845;
}
.myicon-tick-checked:before,
.myicon-tick-checked:after {
content: "";
pointer-events: none;
position: absolute;
color: white;
border: 1px solid;
background-color: white;
}
.myicon-tick-checked:before {
width: 1px;
height: 1px;
left: 25%;
top: 50%;
transform: skew(0deg, 50deg);
}
.myicon-tick-checked:after {
width: 3px;
height: 1px;
left: 45%;
top: 42%;
transform: skew(0deg, -50deg);
}
<span class="myicon-tick-checked"></span>
html:
<button class="destroy" ></button>
css3:
.todo-list li .destroy {
display: block;
position: absolute;
top: 0;
right: 10px;
width: 40px;
height: 40px;
font-size: 30px;
color: #fff;
border-radius: 50%;
background: #ccc;
text-align: center;
line-height: 40px;
cursor: pointer;
}
.destroy:after {
content: '×';
}
/**叉*/
.icon-cha::before {
content: "\2716";
font-size: 16px;
font-weight: bold;
}
/*勾*/
.icon-gou::before {
content: "\2714";
font-size: 16px;
color: #f36a82;
font-weight: bold;
}
模拟手机端菜单图
<span class="menu-icon"></span>
<style>
.menu-icon{
display: inline-block;
width: 30px;
height: 5px;
border-top: 5px solid #DD575C;
border-bottom: 5px solid #DD575C;
background-color: #DD575C;
padding: 5px 0;
background-clip:content-box;
}
</style>
悬浮黑色
<div>
<a class="prev">❮</a>
<a class="next">❯</a>
</div>
css:
/* 下一张 & 上一张 按钮 */
.prev,
.next {
cursor: pointer;
position: absolute;
top: 50%;
width: auto;
/* 为了使按钮居中 */
margin-top: -22px;
padding: 16px;
color: white;
font-weight: bold;
font-size: 18px;
transition: 0.6s ease;
border-radius: 0 3px 3px 0;
}
/* 定位 "下一张" 按钮靠右 */
.next {
right: 0;
border-radius: 3px 0 0 3px;
}
.prev:hover,
.next:hover {
background-color: rgba(0, 0, 0, 0.8);
}