How to style a disabled checkbox?

后端 未结 9 627
旧巷少年郎
旧巷少年郎 2021-01-07 16:32

Do you know how I could style a checkbox when it is disabled?

E.g.:



        
9条回答
  •  执笔经年
    2021-01-07 16:48

    input[type='checkbox'][disabled][checked] {
    width:0px; height:0px;
    }
    input[type='checkbox'][disabled][checked]:after {
     content:'\e013'; position:absolute; 
     margin-top:-10px;
     opacity: 1 !important;
     margin-left:-5px;
     font-family: 'Glyphicons Halflings';
     font-style: normal;
     font-weight: normal;
    }
    

提交回复
热议问题