删除firefox复选框边框

时间:2016-12-30 19:00:27

标签: html css css3

问题是: 如何在FireFox中删除该边框? enter image description here

在Google Chrome上运行时,没问题 enter image description here



input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: borer-box;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

input[type="checkbox"] {
  background: url(//i.imgur.com/qBOXbpe.png) left top no-repeat;
}

input[type="radio"] {
  background: url(//i.imgur.com/qBOXbpe.png) -30px top no-repeat
}

input[type="checkbox"]:checked {
  background: url(//i.imgur.com/qBOXbpe.png) -15px top no-repeat;
}

input[type="radio"]:checked {
  background: url(//i.imgur.com/qBOXbpe.png) -45px top no-repeat;
}

input[type="checkbox"]:focus {
  outline:none;
}

<input type="checkbox" />
&#13;
&#13;
&#13;

0 个答案:

没有答案