我想做一個材料設計複選框,但我有一個小問題與Firefox。 Firefox不顯示覆選框。其他瀏覽器沒有任何問題,它不是隻顯示Firefox。任何人都可以在這方面幫助我?物化CSS複選框火狐
HTML
<input type="checkbox" class="rememberme"> Remember me</input>
CSS
html{
font-family:tahoma;
}
.rememberme:before{
visibility:visible;
content:"";
border:2px solid #DDD;
width:15px;
height:15px;
position:absolute;
z-index:1;
background:transparent;
top:-5px;
left:-30px;
transition: all .3s ease-in-out;
-webkit-transition:all .3s ease-in-out;
-moz-transition:all .3s ease-in-out;
-o-transition:all .3s ease-in-out;
}
.rememberme{
visibility:hidden;
backgorund:#FFF;
margin-top:20px;
margin-left:40px;
position absolute;
}
.rememberme{
position: relative;
background:#FFF;
display:inline-block;
background:red;
}
.rememberme:after{
top:7px;
left:-19px;
transition: all .3s ease-in-out;
-webkit-transition:all .3s ease-in-out;
-moz-transition:all .3s ease-in-out;
-o-transition:all .3s ease-in-out;
visibility:visible;
content:"";
width:0px;
height:0px;
position: absolute;
background: #DDD;
border-radius:50%;
}
.rememberme:checked:after{
visibility:visible;
content:"";
width:30px;
height:30px;
top:-13px;
left:-32px;
position: absolute;
background: #DDD;
border-radius:50%;
z-index:0;
}
.rememberme:checked:before{
transform:rotate(-45deg);
-webkit-transform:rotate(-45deg);
-moz-transform:rotate(-45deg);
-o-transform:rotate(-45deg);
top:-3px;
left:-24px;
border-color:green;
border-top:none;
border-right:none;
height:5px;
width:14px
}
例如:http://nt1m.github.io/material-framework/#toggles –