css画十字架和靶心图标

 

.bottom {

      position: absolute;

      top: 230px;

      /* left: 10px; */

    }

    .bottom button {

      width: 30px;

      height: 30px;

      cursor: pointer;

      border: none;

      background: transparent;

      /* color: #333;

      box-shadow: 0px 1px 10px 2px rgb(10 10 10 / 50%);

      padding-left: 10px;

      border-radius: 50%;

      font-size: 30px;*/

    }

.cross  {

      width: 30px;

      height: 30px;

      position: relative;

    }

    .cross::before, .cross::after {

      content: ""; /* 伪元素,用来绘制十字架的两条线 */

      position: absolute; /* 绝对定位 */

      width: 26px;

      height: 4px;

      background-color: #333; /* 设置为黑色 */

      left: 0;

      top: 16px;

    }

    .cross::before {

      transform: rotate(90deg); /* 将第一条线旋转45度 */

    }

    .cross::after {

      transform: rotate(-180deg); /* 将第二条线旋转-45度 */

    }

    .round4,.round5{

      border-radius: 50%;

      background-color: #333;

      position: absolute;

      z-index: 1;

    }

    .round4{

      width: 20px;

      height: 20px;

      top: 8px;

      left: 3px;

    }

    .round5{

      width: 8px;

      height: 8px;

      border: 4px solid #fff;

      margin: 2px 0 0 2px;

      z-index: 1;

    }

 

<div class="bottom">

    <button id="centerPosition">

      <!-- <div class="coordinate"></div>

      <div class="point"></div> -->

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

      <div class="round4">

        <div class="round5">

        </div>

      </div>

    </button>

  </div>

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值