其他分享
首页 > 其他分享> > 修改 input checkbox 样式

修改 input checkbox 样式

作者:互联网

input[type='checkbox'] {
  margin-right: 5px;
  cursor: pointer;
  font-size: 14px;
  width: 16px;
  height: 14px;
  position: relative;
}

input[type='checkbox']:after {
  position: absolute;
  width: 15px;
  height: 18px;
  top: 0;
  content: ' ';
  color: #fff;
  display: inline-block;
  visibility: visible;
  padding: 0px 2px;

  background: #ffffff;
  border: 1px solid #dddddd;
}

input[type='checkbox']:checked:after {
  content: '✓';
  font-size: 14px;
  font-weight: 600;
  background-color: #1773d6;
}

 

标签:checkbox,样式,color,14px,input,font,type
来源: https://www.cnblogs.com/catherLee/p/15823571.html