2014-07-24 98 views
0

有没有人这样做?我试着用搜索引擎,似乎没有人做过这样的事情定制角度ng-grid复选框css

复选框类NG-电网是这一

.ngSelectionCheckBox 

继csscheckbox的说明我还是不能产生任何东西?

此外,当复选框被检查时,我不知道标签在哪里,因为它只是显示为在控制台上检查。

input[type=checkbox].ngSelectionCheckBox { 
         display:none; 
        } 

        input[type=checkbox].ngSelectionCheckBox + label.css-label { 
         padding-left:41px; 
         height:36px; 
         display:inline-block; 
         line-height:36px; 
         background-repeat:no-repeat; 
         background-position: 0 0; 
         font-size:36px; 
         vertical-align:middle; 
         cursor:pointer; 

        } 

        input[type=checkbox].ngSelectionCheckBox:checked + label.css-label { 
         background-position: 0 -36px; 
        } 
        label.css-label { 
      background-image:url(http://csscheckbox.com/checkboxes/u/csscheckbox_33530f28ddc2749646023b2ef2a90882.png); 
      -webkit-touch-callout: none; 
      -webkit-user-select: none; 
      -khtml-user-select: none; 
      -moz-user-select: none; 
      -ms-user-select: none; 
      user-select: none; 
     } 

这是我试过的。显示器没有工作,但覆盖它似乎并没有工作....

回答

0

你有没有尝试做输入[type =“checkbox”] + .ngSelectionCheckBox {display:none; }。