其他分享
首页 > 其他分享> > CSS 十字

CSS 十字

作者:互联网

<div class="cross"></div>

  

.cross {
  width: 64px;
  height: 64px;
  position: relative;
  background: #1c5fea;
  border-radius: 32px;
}
.cross:after {
  content: '';
  height: 4px;
  width: 24px;
  background: #fff;
  display: block;
  position: absolute;
  left: 20px;
  top: 30px;
  border-radius: 4px;
}
.cross:before {
  content: '';
  height: 24px;
  width: 4px;
  background: #fff;
  display: block;
  position: absolute;
  left: 30px;
  top: 20px;
  border-radius: 4px;
}

标签:cross,height,width,radius,十字,border,CSS,4px
来源: https://www.cnblogs.com/lml2017/p/14544747.html