html自定义禁用状态下且已选中的checkbox

html

<input class="checkbox" type="checkbox" disabled checked>

css实现

::v-deep input[type= "checkbox" ]:disabled:checked::after {
  color : #fff !important;
  width :13px !important;
  height :13px !important;
  background-color: #377ef876 !important;
  content:"✓";
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

最近更新

  1. TCP协议是安全的吗?

    2024-04-09 15:34:01       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-04-09 15:34:01       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-04-09 15:34:01       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-04-09 15:34:01       20 阅读

热门阅读

  1. 对称排序(蓝桥杯)

    2024-04-09 15:34:01       13 阅读
  2. 软件版权登记的条件

    2024-04-09 15:34:01       15 阅读
  3. Go语言中如何实现多态

    2024-04-09 15:34:01       14 阅读
  4. Qt-Mat转QImage

    2024-04-09 15:34:01       11 阅读
  5. leetcode回忆法-1两数之和

    2024-04-09 15:34:01       14 阅读
  6. 【c++&leetcode】1. Two Sum

    2024-04-09 15:34:01       13 阅读
  7. [LeetCode][LCR131]砍竹子 I——推测规律

    2024-04-09 15:34:01       14 阅读
  8. 地理处理和空间分析的关键技巧

    2024-04-09 15:34:01       12 阅读
  9. vs mfc未加载mfc140u导致无法启动

    2024-04-09 15:34:01       13 阅读