我只是将参数 width: 'auto' 放在函数调用上,然后就可以了。 $('#months').select2({ width: 'auto', allowClear: false, height: '100%', });. 答案4 :(得分:0).
確定! 回上一頁