2016-08-12 84 views

回答

7

如果您將float: right;添加到.select2-selection__choice__remove css類,則會將其設置在右側。

編輯:如果你不想觸碰選擇2樣式表,你可以隨時使用jQuery和做這樣的事情:

$('.select2').on('select2:open', function() { 
    $('.select2-selection__choice__remove').addClass('select2-remove-right'); 
}); 

.select2-remove-right { 
    float: right; 
} 
相關問題