我在自定义复选框的Internet Explorer中显示:checked
样式时遇到了一些问题。Internet Explorer的输入:已选中+标签:在未渲染样式之前
他们在Chrome中工作得很好。
...但在IE
以下是有关造型
input[type="radio"], input[type="checkbox"] {
opacity: 1;
position: absolute;
top: -9999;
& + label {
vertical-align: middle;
}
}
input[type="radio"] + label:before,
input[type="checkbox"] + label:before {
content: '\f3fd';
font-family: 'Ionicons';
width: 26px;
height: 20px;
border: 2px solid #45555F;
font-size: 24px;
color: transparent;
display: table-cell;
text-align: center;
transition: all 0.3s linear;
-webkit-transition: all 0.3s linear;
-moz-transition: all 0.3s linear;
-ms-transition: all 0.3s linear;
-o-transition: all 0.3s linear;
padding: 0 2px;
}
input[type="radio"]:checked + label:before,
input[type="checkbox"]:checked + label:before {
content: '\f383';
font-family: 'Ionicons';
font-size: 24px;
width: 26px;
height: 20px;
text-align: center;
display: table-cell;
padding: 0 2px;
border: 2px solid #45555F;
color: #8ec549;
}
input[type="radio"] + label:before {
border-radius: 50% !important;
}
我确实也注意到,Internet Explorer的只是消除了对负载的样式.. 。
感谢您的帮助!
编辑:Codepen演示(该演示不工作在IE要么)
http://codepen.io/anon/pen/rLJqyK
什么是IE版本? –
问题中的图像是IE11,但问题也发生在IE10上! – connorb
您最好打赌的是创建一个可运行的HTML代码片段,我们可以在这里检查问题 –