通过::after选择器给input勾选

<input type="checkbox" id="checkboxbtns" style="margin-right:0.875em;" checked="">

input[type=checkbox]:checked::after  {
  1. contenturl(../images/register/checked.jpg);
  2. displayblock;
  3. positionrelative;
  4. top2px;
  5. left0;
  6. width24px;
  7. height24px;
  8. backgroundnone;

猜你喜欢

转载自blog.csdn.net/pansuyong/article/details/80256173