css3 勾 叉,勾模拟手机菜单 三横杠,左右

勾:

/**绿色勾*/
.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);
}

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值