2016-02-21 35 views

回答

0

更新CSS

input[type="checkbox"] { 
    /*display:none;*/ 
} 
input[type="checkbox"] + label span{ 
    display:inline-block; /*SET TO DISPLAY INLINE BLOCK*/ 
    width:36px; 
    height:36px; 
    margin:-1px 4px 0 0; 
    vertical-align:middle; 
    background:url(components_switches_check3.png) bottom no-repeat; 
} 

輸出 enter image description here

0

您需要使用display:inline-block;屬性有一個元素(你的情況複選框)佔用其內容佔據的空間。